diff --git a/app/angular/package.json b/app/angular/package.json index 4a62b70b2c64..d9f52eb7d1ec 100644 --- a/app/angular/package.json +++ b/app/angular/package.json @@ -70,6 +70,7 @@ "shelljs": "^0.7.8", "style-loader": "^0.18.2", "ts-loader": "^2.2.2", + "uglifyjs-webpack-plugin": "^1.1.4", "url-loader": "^0.5.8", "util-deprecate": "^1.0.2", "uuid": "^3.1.0", diff --git a/app/angular/src/server/config/webpack.config.prod.js b/app/angular/src/server/config/webpack.config.prod.js index 33e6c5ff1e50..c06bc2a4286c 100644 --- a/app/angular/src/server/config/webpack.config.prod.js +++ b/app/angular/src/server/config/webpack.config.prod.js @@ -1,6 +1,8 @@ import path from 'path'; import webpack from 'webpack'; +import UglifyJsPlugin from 'uglifyjs-webpack-plugin'; import HtmlWebpackPlugin from 'html-webpack-plugin'; + import babelLoaderConfig from './babel.prod'; import { getConfigDir, includePaths, excludePaths, loadEnv, nodePaths } from './utils'; import { getPreviewHeadHtml, getManagerHeadHtml } from '../utils'; @@ -44,15 +46,15 @@ export default function() { template: require.resolve('../iframe.html.ejs'), }), new webpack.DefinePlugin(loadEnv({ production: true })), - new webpack.optimize.UglifyJsPlugin({ - compress: { - screw_ie8: true, + new UglifyJsPlugin({ + parallel: true, + uglifyOptions: { + ie8: false, + mangle: false, warnings: false, - }, - mangle: false, - output: { - comments: false, - screw_ie8: true, + output: { + comments: false, + }, }, }), new webpack.ContextReplacementPlugin( diff --git a/app/react-native/package.json b/app/react-native/package.json index 5d2950289938..85336061cc07 100644 --- a/app/react-native/package.json +++ b/app/react-native/package.json @@ -61,6 +61,7 @@ "react-native-iphone-x-helper": "^1.0.1", "shelljs": "^0.7.8", "style-loader": "^0.19.1", + "uglifyjs-webpack-plugin": "^1.1.4", "url-loader": "^0.6.2", "url-parse": "^1.1.9", "util-deprecate": "^1.0.2", diff --git a/app/react-native/src/server/config/webpack.config.prod.js b/app/react-native/src/server/config/webpack.config.prod.js index ad624a3501c8..e0e2cdb1598a 100644 --- a/app/react-native/src/server/config/webpack.config.prod.js +++ b/app/react-native/src/server/config/webpack.config.prod.js @@ -1,5 +1,6 @@ import path from 'path'; import webpack from 'webpack'; +import UglifyJsPlugin from 'uglifyjs-webpack-plugin'; import HtmlWebpackPlugin from 'html-webpack-plugin'; import { OccurenceOrderPlugin, includePaths, excludePaths } from './utils'; @@ -30,17 +31,15 @@ const getConfig = options => { }), new webpack.DefinePlugin({ 'process.env.NODE_ENV': '"production"' }), new webpack.optimize.DedupePlugin(), - new webpack.optimize.UglifyJsPlugin({ - compress: { - screw_ie8: true, + new UglifyJsPlugin({ + parallel: true, + uglifyOptions: { + ie8: false, + mangle: false, warnings: false, - }, - mangle: { - screw_ie8: true, - }, - output: { - comments: false, - screw_ie8: true, + output: { + comments: false, + }, }, }), ], diff --git a/app/react/package.json b/app/react/package.json index dc6f4d9e77d6..ed9d4aa7ab27 100644 --- a/app/react/package.json +++ b/app/react/package.json @@ -72,6 +72,7 @@ "serve-favicon": "^2.4.5", "shelljs": "^0.7.8", "style-loader": "^0.19.1", + "uglifyjs-webpack-plugin": "^1.1.4", "url-loader": "^0.6.2", "util-deprecate": "^1.0.2", "uuid": "^3.1.0", diff --git a/app/react/src/server/config/webpack.config.prod.js b/app/react/src/server/config/webpack.config.prod.js index ba5bfaf7321e..a651c42b9a34 100644 --- a/app/react/src/server/config/webpack.config.prod.js +++ b/app/react/src/server/config/webpack.config.prod.js @@ -1,6 +1,8 @@ import path from 'path'; import webpack from 'webpack'; +import UglifyJsPlugin from 'uglifyjs-webpack-plugin'; import HtmlWebpackPlugin from 'html-webpack-plugin'; + import babelLoaderConfig from './babel.prod'; import { getConfigDir, includePaths, excludePaths, loadEnv, nodePaths } from './utils'; import { getPreviewHeadHtml, getManagerHeadHtml } from '../utils'; @@ -44,15 +46,15 @@ export default function() { template: require.resolve('../iframe.html.ejs'), }), new webpack.DefinePlugin(loadEnv({ production: true })), - new webpack.optimize.UglifyJsPlugin({ - compress: { - screw_ie8: true, + new UglifyJsPlugin({ + parallel: true, + uglifyOptions: { + ie8: false, + mangle: false, warnings: false, - }, - mangle: false, - output: { - comments: false, - screw_ie8: true, + output: { + comments: false, + }, }, }), ], diff --git a/app/vue/package.json b/app/vue/package.json index c12a82354636..a56e091727c6 100644 --- a/app/vue/package.json +++ b/app/vue/package.json @@ -66,6 +66,7 @@ "serve-favicon": "^2.4.5", "shelljs": "^0.7.8", "style-loader": "^0.19.1", + "uglifyjs-webpack-plugin": "^1.1.4", "url-loader": "^0.6.2", "util-deprecate": "^1.0.2", "uuid": "^3.1.0", diff --git a/app/vue/src/server/config/webpack.config.prod.js b/app/vue/src/server/config/webpack.config.prod.js index 0095ad6fcd98..d8e3b93d29ff 100644 --- a/app/vue/src/server/config/webpack.config.prod.js +++ b/app/vue/src/server/config/webpack.config.prod.js @@ -1,6 +1,8 @@ import path from 'path'; import webpack from 'webpack'; +import UglifyJsPlugin from 'uglifyjs-webpack-plugin'; import HtmlWebpackPlugin from 'html-webpack-plugin'; + import babelLoaderConfig from './babel.prod'; import { getConfigDir, includePaths, excludePaths, loadEnv, nodePaths } from './utils'; import { getPreviewHeadHtml, getManagerHeadHtml } from '../utils'; @@ -44,15 +46,15 @@ export default function() { template: require.resolve('../iframe.html.ejs'), }), new webpack.DefinePlugin(loadEnv({ production: true })), - new webpack.optimize.UglifyJsPlugin({ - compress: { - screw_ie8: true, + new UglifyJsPlugin({ + parallel: true, + uglifyOptions: { + ie8: false, + mangle: false, warnings: false, - }, - mangle: false, - output: { - comments: false, - screw_ie8: true, + output: { + comments: false, + }, }, }), ], diff --git a/yarn.lock b/yarn.lock index 78fe53f74f40..a665569df597 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13661,7 +13661,7 @@ uglifyjs-webpack-plugin@^0.4.6: uglify-js "^2.8.29" webpack-sources "^1.0.1" -uglifyjs-webpack-plugin@~1.1.2: +uglifyjs-webpack-plugin@^1.1.4, uglifyjs-webpack-plugin@~1.1.2: version "1.1.4" resolved "https://registry.yarnpkg.com/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-1.1.4.tgz#e43ad6e736c315024eb99481a7cc9362d6a066be" dependencies: