mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-17 17:54:37 -04:00
fix(deps): use terser-webpack-plugin instead of uglifyjs-webpack-plugin
This commit is contained in:
parent
96b558e544
commit
fba9e33235
3 changed files with 4 additions and 170 deletions
|
@ -1,7 +1,7 @@
|
|||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
const defaultsDeep = require('lodash.defaultsdeep');
|
||||
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',
|
||||
|
@ -31,7 +31,7 @@ const base = {
|
|||
},
|
||||
optimization: {
|
||||
minimizer: [
|
||||
new UglifyJsPlugin({
|
||||
new TerserPlugin({
|
||||
include: /\.min\.js$/
|
||||
})
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue