File tree 2 files changed +5
-5
lines changed 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const autoprefixer = require('autoprefixer');
12
12
const path = require ( 'path' ) ;
13
13
const webpack = require ( 'webpack' ) ;
14
14
const HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
15
- const UglifyJsPlugin = require ( 'uglifyjs -webpack-plugin' ) ;
15
+ const TerserPlugin = require ( 'terser -webpack-plugin' ) ;
16
16
const MiniCssExtractPlugin = require ( 'mini-css-extract-plugin' ) ;
17
17
const OptimizeCSSAssetsPlugin = require ( 'optimize-css-assets-webpack-plugin' ) ;
18
18
const ManifestPlugin = require ( 'webpack-manifest-plugin' ) ;
@@ -115,10 +115,10 @@ module.exports = {
115
115
} ,
116
116
optimization : {
117
117
minimizer : [
118
- new UglifyJsPlugin ( {
119
- uglifyOptions : {
118
+ new TerserPlugin ( {
119
+ terserOptions : {
120
120
parse : {
121
- // we want uglify-js to parse ecma 8 code. However, we don't want it
121
+ // we want terser to parse ecma 8 code. However, we don't want it
122
122
// to apply any minfication steps that turns valid ecma 5 code
123
123
// into invalid ecma 5 code. This is why the 'compress' and 'output'
124
124
// sections only apply transformations that are ecma 5 safe
Original file line number Diff line number Diff line change 64
64
"style-loader" : " 0.21.0" ,
65
65
"svgr" : " 1.9.2" ,
66
66
"sw-precache-webpack-plugin" : " 0.11.5" ,
67
+ "terser-webpack-plugin" : " 1.1.0" ,
67
68
"thread-loader" : " 1.2.0" ,
68
- "uglifyjs-webpack-plugin" : " 1.2.5" ,
69
69
"url-loader" : " 1.0.1" ,
70
70
"webpack" : " 4.19.0" ,
71
71
"webpack-dev-server" : " 3.1.7" ,
You can’t perform that action at this time.
0 commit comments