diff options
author | Alexey Vasiliev <leopard.not.a@gmail.com> | 2018-07-11 17:56:47 +0300 |
---|---|---|
committer | Alexey Vasiliev <leopard.not.a@gmail.com> | 2018-07-11 17:56:47 +0300 |
commit | 5e1bd3d51f36537645d06c89b3e97ef1167902f0 (patch) | |
tree | 90a0f80b10b6bb58a4cebf66cb8d0f841324a738 /webpack.config.js | |
parent | 54250241656d7691e488310bf119267c45859118 (diff) |
babel-env
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/webpack.config.js b/webpack.config.js index d6314c6..ecc1f86 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -9,6 +9,9 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const OfflinePlugin = require('offline-plugin'); const ManifestPlugin = require('webpack-manifest-plugin'); +const packageJSON = require('./package.json'); +const browserList = packageJSON.babel.presets[0][1].targets.browsers; + // set NODE_ENV=production on the environment to add asset fingerprints const currentEnv = process.env.NODE_ENV || 'development'; const isProduction = currentEnv === 'production'; @@ -46,10 +49,7 @@ const cssLoaders = [ require('rucksack-css')(), require('postcss-preset-env')({ stage: 1, - browsers: [ - '>0.25%', - 'not op_mini all' - ], + browsers: browserList, features: { 'custom-properties': { strict: false, |