Remove the license headers that terser adds
This commit is contained in:
parent
f68cbf8445
commit
363dcdbdee
1 changed files with 5 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
process.env.NODE_ENV = process.env.NODE_ENV || 'production'
|
process.env.NODE_ENV = process.env.NODE_ENV || 'production'
|
||||||
|
|
||||||
const environment = require('./environment')
|
const environment = require('./environment')
|
||||||
|
const modifyTerserPlugin = require('./plugins/modifyTerserPlugin');
|
||||||
environment.splitChunks((config) => {
|
environment.splitChunks((config) => {
|
||||||
const excludeDonateButtonFromSplit = {
|
const excludeDonateButtonFromSplit = {
|
||||||
optimization:
|
optimization:
|
||||||
|
@ -19,4 +20,8 @@ environment.splitChunks((config) => {
|
||||||
}
|
}
|
||||||
return Object.assign({}, config, excludeDonateButtonFromSplit)
|
return Object.assign({}, config, excludeDonateButtonFromSplit)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// we don't want terser to print out license headers, we'll handle that ourselves
|
||||||
|
environment.config.optimization.minimizer[0].options.extractComments = false;
|
||||||
|
|
||||||
module.exports = environment.toWebpackConfig()
|
module.exports = environment.toWebpackConfig()
|
||||||
|
|
Loading…
Reference in a new issue