From 7dde0a833b28c762eefe5e5411be30a251542f5f Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Thu, 10 Oct 2019 06:02:18 -0700 Subject: [PATCH] fix: disable minification on server build (#1563) --- webpack/server.config.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/webpack/server.config.js b/webpack/server.config.js index e555c1bc..609578ce 100644 --- a/webpack/server.config.js +++ b/webpack/server.config.js @@ -2,7 +2,6 @@ const webpack = require('webpack') const config = require('sapper/config/webpack.js') const pkg = require('../package.json') const { mode, dev, resolve, inlineSvgs, allSvgs } = require('./shared.config') -const terser = require('./terser.config') // modules that the server should ignore, either because they cause errors or warnings // (because they're only used on the client side) @@ -49,10 +48,7 @@ module.exports = { hints: false // it doesn't matter if server.js is large }, optimization: dev ? {} : { - minimize: !process.env.DEBUG, - minimizer: [ - terser() - ] + minimize: false }, plugins: [ new webpack.DefinePlugin({