tasks/webpack.prod.js

19 lines
371 B
JavaScript
Raw Permalink Normal View History

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