Merge commit 'dc4a850cacecb8c57923803363dac9bb61221bba' into v2.x
commit
a5357812c6
@ -1,8 +1,23 @@
|
||||
'use strict';
|
||||
|
||||
const { merge } = require('webpack-merge');
|
||||
const TerserPlugin = require('terser-webpack-plugin');
|
||||
const ProgressPlugin = require('progress-webpack-plugin');
|
||||
|
||||
const common = require('./webpack.common');
|
||||
|
||||
module.exports = merge(common, {
|
||||
mode: 'production',
|
||||
plugins: [
|
||||
new ProgressPlugin(true),
|
||||
],
|
||||
optimization: {
|
||||
minimize: true,
|
||||
minimizer: [
|
||||
new TerserPlugin({
|
||||
minify: TerserPlugin.esbuildMinify,
|
||||
terserOptions: {},
|
||||
}),
|
||||
],
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue