mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-21 13:27:04 +08:00
Strip comments from the production build (#5)
* Strip comments from the production build * Add screw_ie8 options to UglifyJsPlugin
This commit is contained in:
committed by
Christopher Chedeau
parent
b109536326
commit
5afb14a07b
@@ -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
|
||||
}
|
||||
})
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user