From a07e62ca67285633c478f706960167d5bb086a81 Mon Sep 17 00:00:00 2001 From: marudor Date: Fri, 26 Jul 2019 12:40:21 +0200 Subject: Use core-js as polyfill to really support older browsers. --- webpack.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'webpack.config.js') 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: [ -- cgit v1.2.3-54-g00ecf