From 0d8a35f2f42a650b92bba1df2d8600c839eb310d Mon Sep 17 00:00:00 2001 From: Tristan Yang Date: Sun, 29 Jan 2023 08:11:55 +0800 Subject: [PATCH] chore: remove build css comments --- config/webpack.config.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/config/webpack.config.js b/config/webpack.config.js index c671e49c..d955f40a 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -218,7 +218,16 @@ module.exports = function (webpackEnv) { } }), // This is only used in production mode - new CssMinimizerPlugin() + new CssMinimizerPlugin({ + minimizerOptions: { + preset: [ + "default", + { + discardComments: { removeAll: true } + } + ] + } + }) ] }, resolve: {