tasks/webpack.prod.js
Raimund Schlüßler 6d20bfa493
Remove comments from javascript
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
2019-08-28 20:36:13 +02:00

18 lines
371 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',
devtool: '#source-map',
optimization: {
minimizer: [new TerserPlugin({
terserOptions: {
output: {
comments: false,
}
},
sourceMap: true,
})],
}
});