Skip to content

Commit e8408b0

Browse files
committed
fix(build): add react minification support
Fix #2110
1 parent 9b1c3e0 commit e8408b0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/angular-cli/models/webpack-build-production.ts

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ export const getWebpackProdConfigPartial = function(projectRoot: string, appConf
2424
},
2525
plugins: [
2626
new WebpackMd5Hash(),
27+
new webpack.DefinePlugin({
28+
'process.env.NODE_ENV': 'production'
29+
}),
2730
new webpack.optimize.UglifyJsPlugin(<any>{
2831
mangle: { screw_ie8 : true },
2932
compress: { screw_ie8: true },

0 commit comments

Comments
 (0)