webpack mode should be 'none' unless embark's mode is 'production'

This commit is contained in:
Michael Bradley, Jr 2018-07-24 20:33:04 -05:00 committed by Iuri Matias
parent 52ef230d47
commit 971ca8d3ae
1 changed files with 1 additions and 1 deletions

View File

@ -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