Skip to content

Commit

Permalink
chore: remove comments from css (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
warnyul authored Nov 28, 2024
1 parent 5c24ec4 commit 70afb7e
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,16 @@ module.exports = {
minimize: true,
minimizer: [
new CssMinimizerPlugin({
minimizerOptions: [
{
preset: 'advanced'
},
],
minimizerOptions: {
preset: [
'advanced',
{
discardComments: {
removeAll: true,
},
},
],
},
minify: [
CssMinimizerPlugin.cssnanoMinify,
]
Expand Down

0 comments on commit 70afb7e

Please sign in to comment.