We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1a8858 commit 47d701aCopy full SHA for 47d701a
build/webpack.prod.conf.js
@@ -1,5 +1,5 @@
1
const { merge } = require('webpack-merge');
2
-const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
+const TerserPlugin = require("terser-webpack-plugin");
3
const webWebpackConfig = require('./webpack.web.conf');
4
const nodeWebpackConfig = require('./webpack.node.conf');
5
@@ -9,13 +9,9 @@ const webpackConfig = {
9
performance: { hints: false },
10
optimization: {
11
minimizer: [
12
- new UglifyJsPlugin({
13
- include: /\.min\.js$/,
14
- uglifyOptions: {
15
- warnings: false,
16
- },
17
- sourceMap: true,
+ new TerserPlugin({
18
parallel: true,
+ test: /\.min\.js$/,
19
}),
20
],
21
},
0 commit comments