chore: remove build css comments

This commit is contained in:
Tristan Yang
2023-01-29 08:11:55 +08:00
parent 343c6e80cb
commit 0d8a35f2f4
+10 -1
View File
@@ -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: {