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
7676a59e7c
commit
d784cd3ee3
|
@ -38,7 +38,7 @@ class WebpackProcess extends ProcessWrapper {
|
||||||
webpackRun(filename, options, includeModules, importsList, detectErrors, realCwd, callback) {
|
webpackRun(filename, options, includeModules, importsList, detectErrors, realCwd, callback) {
|
||||||
const self = this;
|
const self = this;
|
||||||
let defaultOptions = {
|
let defaultOptions = {
|
||||||
mode: self.env === 'development' ? 'none' : 'production',
|
mode: self.env === 'production' ? 'production' : 'none',
|
||||||
// devtool: self.env === 'development' ? 'source-map' : false,
|
// devtool: self.env === 'development' ? 'source-map' : false,
|
||||||
// pipeline would need to copy .map files to dist/ target dir
|
// pipeline would need to copy .map files to dist/ target dir
|
||||||
// note: generating full source maps ('source-map') roughly doubles build time
|
// note: generating full source maps ('source-map') roughly doubles build time
|
||||||
|
|
Loading…
Reference in New Issue