Skip to content

Commit

Permalink
Replace uglify option with new minimize options (#263)
Browse files Browse the repository at this point in the history
Remove uglify
  • Loading branch information
gugu authored and supasate committed Mar 3, 2019
1 parent b9a359d commit 71537ff
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions webpack.config.js
@@ -1,5 +1,3 @@
var webpack = require('webpack')

var config = {
entry: './src/index',
module: {
Expand All @@ -14,10 +12,9 @@ var config = {
}

if (process.env.NODE_ENV === 'production') {
config.plugins = [
new webpack.optimize.UglifyJsPlugin({ sourceMap: true }),
new webpack.LoaderOptionsPlugin({ minimize: true })
]
config.optimization = {
minimize: true
}
}

module.exports = config

0 comments on commit 71537ff

Please sign in to comment.