mirror of https://github.com/embarklabs/embark.git
webpack mode should be 'none' unless embark's mode is 'production'
This commit is contained in:
parent
52ef230d47
commit
971ca8d3ae
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue