Merge pull request #14233 from island205/bugfix/remove-comments-in-umd-module

Build: delete unremoved comments in umd module `lib/index.js`
pull/14234/head
Zhi Cun 2019-01-27 20:46:31 +08:00 committed by GitHub
commit d351c075c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -1,6 +1,7 @@
const path = require('path');
const ProgressBarPlugin = require('progress-bar-webpack-plugin');
const VueLoaderPlugin = require('vue-loader/lib/plugin');
const TerserPlugin = require('terser-webpack-plugin');
const config = require('./config');
@ -26,6 +27,17 @@ module.exports = {
externals: {
vue: config.vue
},
optimization: {
minimizer: [
new TerserPlugin({
terserOptions: {
output: {
comments: false
}
},
})
]
},
performance: {
hints: false
},