2018-11-08 21:03:50 +00:00
|
|
|
const merge = require('webpack-merge')
|
|
|
|
const common = require('./webpack.common.js')
|
2019-08-28 18:32:45 +00:00
|
|
|
const TerserPlugin = require('terser-webpack-plugin')
|
2018-08-19 20:18:53 +00:00
|
|
|
|
|
|
|
module.exports = merge(common, {
|
|
|
|
mode: 'production',
|
2019-08-28 18:32:45 +00:00
|
|
|
devtool: '#source-map',
|
|
|
|
optimization: {
|
|
|
|
minimizer: [new TerserPlugin({
|
|
|
|
terserOptions: {
|
|
|
|
output: {
|
|
|
|
comments: false,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
sourceMap: true,
|
|
|
|
})],
|
|
|
|
}
|
2018-08-19 20:18:53 +00:00
|
|
|
});
|