diff --git a/lib/pipeline/webpackProcess.js b/lib/pipeline/webpackProcess.js index b53f1138..759b1157 100644 --- a/lib/pipeline/webpackProcess.js +++ b/lib/pipeline/webpackProcess.js @@ -10,6 +10,11 @@ const path = require('path'); let webpackProcess; class WebpackProcess extends ProcessWrapper { + constructor(options) { + super(options); + this.env = options.env; + } + build(file, importsList, callback) { const self = this; let realCwd; diff --git a/lib/process/processWrapper.js b/lib/process/processWrapper.js index 1a388385..84b808c1 100644 --- a/lib/process/processWrapper.js +++ b/lib/process/processWrapper.js @@ -17,7 +17,6 @@ class ProcessWrapper { */ constructor(_options) { this.interceptLogs(); - this.env = _options ? _options.env : 'development'; this.events = new Events(); this.pingParent();