Skip to content

Commit

Permalink
Merge pull request #14233 from island205/bugfix/remove-comments-in-um…
Browse files Browse the repository at this point in the history
…d-module

Build: delete unremoved comments in umd module `lib/index.js`
  • Loading branch information
island205 committed Jan 27, 2019
2 parents 8a27259 + 6d05ccc commit d351c07
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build/webpack.conf.js
Original file line number Diff line number Diff line change
@@ -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');

Expand All @@ -26,6 +27,17 @@ module.exports = {
externals: {
vue: config.vue
},
optimization: {
minimizer: [
new TerserPlugin({
terserOptions: {
output: {
comments: false
}
},
})
]
},
performance: {
hints: false
},
Expand Down

0 comments on commit d351c07

Please sign in to comment.