Update terser-webpack-plugin

Following our other projects.
This commit is contained in:
Martin Pitt 2021-07-23 07:39:58 +02:00 committed by Katerina Koukiou
parent 28466f7217
commit a509dde986
4 changed files with 15 additions and 4 deletions

View file

@ -58,7 +58,18 @@ module.exports = {
optimization: {
minimize: production,
minimizer: [new TerserJSPlugin(), new CssMinimizerPlugin()],
minimizer: [
new TerserJSPlugin({
extractComments: {
condition: true,
filename: `[file].LICENSE.txt?query=[query]&filebase=[base]`,
banner(licenseFile) {
return `License information can be found in ${licenseFile}`;
},
},
}),
new CssMinimizerPlugin()
],
},
module: {