How to Remove Generated License File Webpack
It appears that you want to remove the generation of license comments in your webpack bundle. To achieve this, you can set the extractComments
option of the TerserPlugin to false
. This will prevent the plugin from extracting and adding license comments to your bundle. Here’s how you can modify your webpack configuration:
|
|
By setting extractComments
to false
, the TerserPlugin will not include license comments in your minified bundle. This should help you achieve your goal of removing the generated license file from your webpack output.