Answer the question
In order to leave comments, you need to log in
How to remove comments from chunk-vendors.js?
Hello using
new TerserPlugin({
extractComments: {
condition: /^\**!|@preserve|@license|@cc_on/i,
filename: (fileData) => {
// The "fileData" argument contains object with "filename", "basename", "query" and "hash"
return `${fileData.filename}.LICENSE.txt${fileData.query}`;
},
banner: (licenseFile) => {
return `License information can be found in ${licenseFile}`;
},
},
}),
license comments are transferred to a text file, but chunk-vendors.js comments remain, for example/**
* vue-class-component v8.0.0-rc.1
* (c) 2015-present Evan You
* @license MIT
*/
how to transfer them too
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question