Update terser-webpack-plugin
Following our other projects.
This commit is contained in:
parent
28466f7217
commit
a509dde986
4 changed files with 15 additions and 4 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue