Skip to content

Commit

Permalink
fix: Replace deprecated webpack.optimize.UglifyJsPlugin with uglifyjs…
Browse files Browse the repository at this point in the history
…-webpack-plugin
  • Loading branch information
ephys committed Apr 3, 2018
1 parent 728e5c0 commit f0eac80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -98,6 +98,7 @@
"srcset-loader": "^2.3.0",
"style-loader": "^0.20.3",
"toposort-class": "^1.0.1",
"uglifyjs-webpack-plugin": "^1.2.4",
"universal-cookie-express": "^2.1.2",
"url-loader": "^1.0.1",
"webpack": "^4.4.1",
Expand Down
4 changes: 2 additions & 2 deletions src/internals/webpack/features/optimize.js
@@ -1,6 +1,6 @@
// @flow

import webpack from 'webpack';
import UglifyJsPlugin from 'uglifyjs-webpack-plugin';
import OfflinePlugin from 'offline-plugin';
import CompressionPlugin from 'compression-webpack-plugin';
import BaseFeature from '../BaseFeature';
Expand Down Expand Up @@ -48,7 +48,7 @@ export default class OptimizeFeature extends BaseFeature {
minimize: true,
minimizer: [

new webpack.optimize.UglifyJsPlugin({
new UglifyJsPlugin({
parallel: true,
cache: true,

Expand Down

0 comments on commit f0eac80

Please sign in to comment.