Skip to content

Commit

Permalink
turning off uglifyjs fixes the bug
Browse files Browse the repository at this point in the history
  • Loading branch information
davidascher committed May 26, 2017
1 parent 5be083a commit b0c95d2
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,19 +245,19 @@ module.exports = {
// Otherwise React will be compiled in the very slow development mode.
new webpack.DefinePlugin(env.stringified),
// Minify the code.
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false,
// This feature has been reported as buggy a few times, such as:
// https://github.com/mishoo/UglifyJS2/issues/1964
// We'll wait with enabling it by default until it is more solid.
reduce_vars: false
},
output: {
comments: false
},
sourceMap: true
}),
// new webpack.optimize.UglifyJsPlugin({
// compress: {
// warnings: false,
// // This feature has been reported as buggy a few times, such as:
// // https://github.com/mishoo/UglifyJS2/issues/1964
// // We'll wait with enabling it by default until it is more solid.
// reduce_vars: false
// },
// output: {
// comments: false
// },
// sourceMap: true
// }),
// Note: this won't work without ExtractTextPlugin.extract(..) in `loaders`.
new ExtractTextPlugin({
filename: cssFilename
Expand Down

0 comments on commit b0c95d2

Please sign in to comment.