mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-14 17:24:58 +00:00
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…
x
Reference in New Issue
Block a user