From cb399a3878f3781f55d20bf95718081f6891f102 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 6 Sep 2021 11:47:30 -0500 Subject: [PATCH] Webpack: implicit TerserPlugin --- webpack/production.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/webpack/production.js b/webpack/production.js index 36c1417e0..b5d14ac40 100644 --- a/webpack/production.js +++ b/webpack/production.js @@ -4,7 +4,6 @@ console.log('Running in production mode'); // eslint-disable-line no-console const { merge } = require('webpack-merge'); const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); const OfflinePlugin = require('@lcdp/offline-plugin'); -const TerserPlugin = require('terser-webpack-plugin'); const CompressionPlugin = require('compression-webpack-plugin'); const sharedConfig = require('./shared'); @@ -15,23 +14,6 @@ module.exports = merge(sharedConfig, { bail: true, optimization: { minimize: true, - minimizer: [ - // This doesn't work unless I pass a function... wut - compiler => { - new TerserPlugin({ - parallel: true, - - terserOptions: { - warnings: false, - mangle: false, - - output: { - comments: false, - }, - }, - }).apply(compiler); - }, - ], }, plugins: [