Skip to content

Commit

Permalink
fix: Disable removeComments in HtmlWebpackPlugin to retain license fi…
Browse files Browse the repository at this point in the history
…les (#57)

Turned off `removeComments` in HtmlWebpackPlugin to ensure comments are preserved for Terser, enabling the generation of `[name].[hash].js.LICENSE.txt` files.
  • Loading branch information
warnyul authored Nov 29, 2024
1 parent cfe4795 commit 4b19120
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ module.exports = {
hash: false,
minify: {
collapseWhitespace: true,
removeComments: true,
removeComments: false,
minifyCSS: true,
minifyJS: true,
}
Expand All @@ -179,7 +179,7 @@ module.exports = {
hash: false,
minify: {
collapseWhitespace: true,
removeComments: true,
removeComments: false,
minifyCSS: true,
minifyJS: true,
}
Expand Down

0 comments on commit 4b19120

Please sign in to comment.