Skip to content

Commit a2e1956

Browse files
committed
fix(deps): use terser-webpack-plugin instead of uglifyjs-webpack-plugin
1 parent 6a87561 commit a2e1956

File tree

3 files changed

+5
-196
lines changed

3 files changed

+5
-196
lines changed

package-lock.json

+2-193
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"json": "^9.0.4",
6060
"scratch-semantic-release-config": "1.0.14",
6161
"semantic-release": "19.0.5",
62-
"uglifyjs-webpack-plugin": "2.2.0",
62+
"terser-webpack-plugin": "1.4.5",
6363
"webpack": "4.47.0",
6464
"webpack-cli": "3.3.12"
6565
},

webpack.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const path = require('path');
2-
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
2+
const TerserPlugin = require('terser-webpack-plugin');
33

44
const base = {
55
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
@@ -33,7 +33,7 @@ const base = {
3333
},
3434
optimization: {
3535
minimizer: [
36-
new UglifyJsPlugin({
36+
new TerserPlugin({
3737
include: /\.min\.js$/,
3838
sourceMap: true
3939
})

0 commit comments

Comments
 (0)