Skip to content

Commit

Permalink
fix(deps): use terser-webpack-plugin instead of uglifyjs-webpack-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
towerofnix committed Jan 5, 2024
1 parent 34ac8e2 commit b14cf74
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 83 deletions.
81 changes: 1 addition & 80 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"scratch-render-fonts": "1.0.0-prerelease.20231017225105",
"scratch-vm": "0.2.0-prerelease.20201125065300",
"tap": "11.1.5",
"terser-webpack-plugin": "^1.4.5",
"travis-after-all": "1.4.5",
"uglifyjs-webpack-plugin": "1.3.0",
"webpack": "4.47.0",
"webpack-cli": "3.3.12",
"webpack-dev-server": "3.11.2"
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const CopyWebpackPlugin = require('copy-webpack-plugin');
const path = require('path');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');

const base = {
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
Expand All @@ -26,7 +26,7 @@ const base = {
},
optimization: {
minimizer: [
new UglifyJsPlugin({
new TerserPlugin({
include: /\.min\.js$/
})
]
Expand Down

0 comments on commit b14cf74

Please sign in to comment.