Remove the license headers that terser adds

This commit is contained in:
Eric Schultz 2020-08-05 14:56:42 -05:00 committed by Eric Schultz
parent f68cbf8445
commit 363dcdbdee

View file

@ -1,6 +1,7 @@
process.env.NODE_ENV = process.env.NODE_ENV || 'production'
const environment = require('./environment')
const modifyTerserPlugin = require('./plugins/modifyTerserPlugin');
environment.splitChunks((config) => {
const excludeDonateButtonFromSplit = {
optimization:
@ -19,4 +20,8 @@ environment.splitChunks((config) => {
}
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()