Skip to content

Commit a507cc4

Browse files
committed
feat: update uglifyjs-webpack-plugin to 2.2.0
closes #454
1 parent b7debd1 commit a507cc4

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

config/webpack.config.prod.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ module.exports = {
6161
minimizer: [
6262
new UglifyJsPlugin({
6363
uglifyOptions: {
64+
warnings: false,
6465
// ES5 is required in the minified code if you want compatibility with IE11,
6566
// otherwise you can bump it up to ES8
6667
ecma: 5,
6768
// Compression settings mostly based on <https://guide.elm-lang.org/optimization/asset_size.html>
6869
compress: {
6970
passes: 2,
70-
warnings: false,
7171
// Disabled because of an issue with Uglify breaking seemingly valid code:
7272
// https://github.com/facebook/create-react-app/issues/2376
7373
// Pending further investigation:
@@ -96,9 +96,6 @@ module.exports = {
9696
'F9',
9797
],
9898
},
99-
mangle: {
100-
safari10: true,
101-
},
10299
output: {
103100
comments: false,
104101
// Turned on because emoji and regex is not minified properly using default

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"string-replace-loader": "2.3.0",
6060
"strip-ansi": "6.0.0",
6161
"style-loader": "1.2.1",
62-
"uglifyjs-webpack-plugin": "1.3.0",
62+
"uglifyjs-webpack-plugin": "2.2.0",
6363
"url-loader": "4.1.0",
6464
"webpack": "4.44.2",
6565
"webpack-dev-server": "3.11.0",

0 commit comments

Comments
 (0)