You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
713 B
31 lines
713 B
4 years ago
|
// This file is auto-generated from the corresponding file in /dev_mode
|
||
|
const TerserPlugin = require('terser-webpack-plugin');
|
||
|
const merge = require('webpack-merge');
|
||
|
const config = require('./webpack.config');
|
||
|
|
||
|
config[0] = merge(config[0], {
|
||
|
mode: 'production',
|
||
|
devtool: 'source-map',
|
||
|
optimization: {
|
||
|
minimizer: [
|
||
|
new TerserPlugin({
|
||
|
parallel: true,
|
||
|
sourceMap: true,
|
||
|
terserOptions: {
|
||
|
compress: false,
|
||
|
ecma: 6,
|
||
|
mangle: true,
|
||
|
output: {
|
||
|
beautify: false,
|
||
|
comments: false
|
||
|
},
|
||
|
safari10: true
|
||
|
},
|
||
|
cache: process.platform !== 'win32'
|
||
|
})
|
||
|
]
|
||
|
}
|
||
|
});
|
||
|
|
||
|
module.exports = config;
|