Remove comments from javascript

Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
This commit is contained in:
Raimund Schlüßler 2019-08-28 20:32:45 +02:00
parent f0f74532ce
commit 6d20bfa493
No known key found for this signature in database
GPG key ID: 036FA7EB1A599178
2 changed files with 13 additions and 1 deletions

View file

@ -82,6 +82,7 @@
"stylelint-scss": "^3.10.0", "stylelint-scss": "^3.10.0",
"stylelint-webpack-plugin": "^0.10.5", "stylelint-webpack-plugin": "^0.10.5",
"svg-sprite": "^1.5.0", "svg-sprite": "^1.5.0",
"terser-webpack-plugin": "^1.4.1",
"vue-click-outside": "^1.0.7", "vue-click-outside": "^1.0.7",
"vue-jest": "^3.0.4", "vue-jest": "^3.0.4",
"vue-loader": "^15.7.1", "vue-loader": "^15.7.1",

View file

@ -1,7 +1,18 @@
const merge = require('webpack-merge') const merge = require('webpack-merge')
const common = require('./webpack.common.js') const common = require('./webpack.common.js')
const TerserPlugin = require('terser-webpack-plugin')
module.exports = merge(common, { module.exports = merge(common, {
mode: 'production', mode: 'production',
devtool: '#source-map' devtool: '#source-map',
optimization: {
minimizer: [new TerserPlugin({
terserOptions: {
output: {
comments: false,
}
},
sourceMap: true,
})],
}
}); });