File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ Given a basic configuration file like so:
34
34
const ExtractTextPlugin = require (' extract-text-webpack-plugin' );
35
35
const HtmlWebpackPlugin = require (' html-webpack-plugin' );
36
36
const path = require (' path' );
37
- const UglifyJSPlugin = require (' uglifyjs -webpack-plugin' );
37
+ const TerserPlugin = require (' terser -webpack-plugin' );
38
38
const webpack = require (' webpack' );
39
39
40
40
module .exports = {
@@ -68,7 +68,7 @@ module.exports = {
68
68
},
69
69
70
70
plugins: [
71
- new UglifyJSPlugin (),
71
+ new TerserPlugin (),
72
72
73
73
new ExtractTextPlugin (' styles-[contentHash].css' ),
74
74
@@ -115,7 +115,7 @@ After it has run, we have our new webpack config file!
115
115
const ExtractTextPlugin = require (' extract-text-webpack-plugin' );
116
116
const HtmlWebpackPlugin = require (' html-webpack-plugin' );
117
117
const path = require (' path' );
118
- const UglifyJSPlugin = require (' uglifyjs -webpack-plugin' );
118
+ const TerserPlugin = require (' terser -webpack-plugin' );
119
119
const webpack = require (' webpack' );
120
120
121
121
module .exports = {
@@ -154,7 +154,7 @@ module.exports = {
154
154
},
155
155
156
156
plugins: [
157
- new UglifyJSPlugin (),
157
+ new TerserPlugin (),
158
158
159
159
new ExtractTextPlugin (' styles-[contentHash].css' ),
160
160
You can’t perform that action at this time.
0 commit comments