18 строки
333 B
JavaScript
18 строки
333 B
JavaScript
const { merge } = require('webpack-merge')
|
|
const common = require('./webpack.common.js')
|
|
const TerserPlugin = require('terser-webpack-plugin')
|
|
|
|
module.exports = merge(common, {
|
|
mode: 'production',
|
|
optimization: {
|
|
minimizer: [
|
|
new TerserPlugin({
|
|
parallel: true,
|
|
terserOptions: {
|
|
ecma: 6,
|
|
},
|
|
}),
|
|
],
|
|
},
|
|
})
|