diff options
author | msquare <msquare@notrademark.de> | 2019-07-26 13:06:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-26 13:06:02 +0200 |
commit | aa11bead7cff72daa2ce71a03701d6d2875d7ec4 (patch) | |
tree | 23a6591b4a15086cf085e1884f1aab9981807c18 /webpack.config.js | |
parent | 1b3781cb2f38e6e8288447dff06ab94c4007824f (diff) | |
parent | a07e62ca67285633c478f706960167d5bb086a81 (diff) |
Merge pull request #628 from marudor/coreJs
Use core-js as polyfill to really support older browsers.
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webpack.config.js b/webpack.config.js index f25a37ea..45378a8a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -2,6 +2,7 @@ const path = require('path'); const webpack = require('webpack'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); +const TerserPlugin = require('terser-webpack-plugin'); const nodeEnv = (process.env.NODE_ENV || 'development').trim(); // eslint-disable-next-line @@ -43,7 +44,7 @@ module.exports = { publicPath: '', }, optimization: { - minimizer: __DEV__ ? [] : [new OptimizeCSSAssetsPlugin({})], + minimizer: __DEV__ ? [] : [new OptimizeCSSAssetsPlugin({}), new TerserPlugin()], }, module: { rules: [ |