diff options
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: [ |