Skip to content

Commit b14cf74

Browse files
committed
fix(deps): use terser-webpack-plugin instead of uglifyjs-webpack-plugin
1 parent 34ac8e2 commit b14cf74

File tree

3 files changed

+4
-83
lines changed

3 files changed

+4
-83
lines changed

package-lock.json

+1-80
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
@@ -40,8 +40,8 @@
4040
"scratch-render-fonts": "1.0.0-prerelease.20231017225105",
4141
"scratch-vm": "0.2.0-prerelease.20201125065300",
4242
"tap": "11.1.5",
43+
"terser-webpack-plugin": "^1.4.5",
4344
"travis-after-all": "1.4.5",
44-
"uglifyjs-webpack-plugin": "1.3.0",
4545
"webpack": "4.47.0",
4646
"webpack-cli": "3.3.12",
4747
"webpack-dev-server": "3.11.2"

webpack.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const CopyWebpackPlugin = require('copy-webpack-plugin');
22
const path = require('path');
3-
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
3+
const TerserPlugin = require('terser-webpack-plugin');
44

55
const base = {
66
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
@@ -26,7 +26,7 @@ const base = {
2626
},
2727
optimization: {
2828
minimizer: [
29-
new UglifyJsPlugin({
29+
new TerserPlugin({
3030
include: /\.min\.js$/
3131
})
3232
]

0 commit comments

Comments
 (0)