From 363dcdbdee7a941e26e2e498214771e1cd44c812 Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Wed, 5 Aug 2020 14:56:42 -0500 Subject: [PATCH] Remove the license headers that terser adds --- config/webpack/production.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/webpack/production.js b/config/webpack/production.js index 24c11951..3e3269a6 100644 --- a/config/webpack/production.js +++ b/config/webpack/production.js @@ -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()