From d860f14d8a38a92d0e454477ea098cf5f6f84e71 Mon Sep 17 00:00:00 2001 From: nuintun Date: Sun, 31 Mar 2024 08:35:59 +0800 Subject: [PATCH] chore: Update tools --- tools/bin/webpack.config.prod.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/bin/webpack.config.prod.js b/tools/bin/webpack.config.prod.js index c0944eea..0827dcd2 100644 --- a/tools/bin/webpack.config.prod.js +++ b/tools/bin/webpack.config.prod.js @@ -25,7 +25,8 @@ import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer'; configure.optimization.minimizer = [ new CssMinimizerPlugin(), new TerserPlugin({ - minify: TerserPlugin.swcMinify + minify: TerserPlugin.swcMinify, + terserOptions: { format: { comments: false } } }) ];