From d784cd3ee3418c42466ad0bd1c72d70b481a23e2 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Tue, 24 Jul 2018 20:33:04 -0500 Subject: [PATCH] webpack mode should be 'none' unless embark's mode is 'production' --- lib/pipeline/webpackProcess.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pipeline/webpackProcess.js b/lib/pipeline/webpackProcess.js index bddfacf1d..b53f11389 100644 --- a/lib/pipeline/webpackProcess.js +++ b/lib/pipeline/webpackProcess.js @@ -38,7 +38,7 @@ class WebpackProcess extends ProcessWrapper { webpackRun(filename, options, includeModules, importsList, detectErrors, realCwd, callback) { const self = this; let defaultOptions = { - mode: self.env === 'development' ? 'none' : 'production', + mode: self.env === 'production' ? 'production' : 'none', // devtool: self.env === 'development' ? 'source-map' : false, // pipeline would need to copy .map files to dist/ target dir // note: generating full source maps ('source-map') roughly doubles build time