Skip to content

Commit

Permalink
Strip comments from the production build (#5)
Browse files Browse the repository at this point in the history
* Strip comments from the production build

* Add screw_ie8 options to UglifyJsPlugin
  • Loading branch information
insin authored and vjeux committed Jul 17, 2016
1 parent b1cf65e commit b036bb9
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,18 @@ module.exports = {
}),
new webpack.DefinePlugin({ 'process.env.NODE_ENV': '"production"' }),
new webpack.optimize.OccurrenceOrderPlugin(),
new webpack.optimize.UglifyJsPlugin({ compressor: { warnings: false } })
new webpack.optimize.UglifyJsPlugin({
compressor: {
screw_ie8: true,
warnings: false
},
mangle: {
screw_ie8: true
},
output: {
comments: false,
screw_ie8: true
}
})
]
};

0 comments on commit b036bb9

Please sign in to comment.