Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #8072 from NejcZdovc/hotfix/#8071-uglifyjs
Browse files Browse the repository at this point in the history
Removes uglifyjs from test run
  • Loading branch information
bsclifton authored Apr 7, 2017
2 parents 077a60c + d2952b0 commit c143e57
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,16 @@ function production () { // eslint-disable-line
var prod = config()
prod.plugins.push(new webpack.optimize.DedupePlugin())
prod.plugins.push(new webpack.optimize.OccurrenceOrderPlugin(true))
prod.plugins.push(new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
},
mangle: {
except: ['module', 'exports', 'require']
}
}))
if (env !== 'test') {
prod.plugins.push(new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
},
mangle: {
except: ['module', 'exports', 'require']
}
}))
}
return prod
}

Expand Down

0 comments on commit c143e57

Please sign in to comment.