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