Skip to content

Commit b036bb9

Browse files
insinvjeux
authored andcommitted
Strip comments from the production build (#5)
* Strip comments from the production build * Add screw_ie8 options to UglifyJsPlugin
1 parent b1cf65e commit b036bb9

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Diff for: webpack.config.prod.js

+13-1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,18 @@ module.exports = {
9191
}),
9292
new webpack.DefinePlugin({ 'process.env.NODE_ENV': '"production"' }),
9393
new webpack.optimize.OccurrenceOrderPlugin(),
94-
new webpack.optimize.UglifyJsPlugin({ compressor: { warnings: false } })
94+
new webpack.optimize.UglifyJsPlugin({
95+
compressor: {
96+
screw_ie8: true,
97+
warnings: false
98+
},
99+
mangle: {
100+
screw_ie8: true
101+
},
102+
output: {
103+
comments: false,
104+
screw_ie8: true
105+
}
106+
})
95107
]
96108
};

0 commit comments

Comments
 (0)