We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c96bea commit 14f2392Copy full SHA for 14f2392
packages/@vue/cli-ui/src/graphql-api/connectors/tasks.js
@@ -292,11 +292,18 @@ async function run (id, context) {
292
293
process.env.VUE_CLI_CONTEXT = cwd.get()
294
295
+ const nodeEnv = process.env.NODE_ENV
296
+ delete process.env.NODE_ENV
297
+
298
const child = execa(command, args, {
299
cwd: cwd.get(),
300
stdio: ['inherit', 'pipe', 'pipe']
301
})
302
303
+ if (typeof nodeEnv !== 'undefined') {
304
+ process.env.NODE_ENV = nodeEnv
305
+ }
306
307
task.child = child
308
309
const outPipe = logPipe(queue => {
0 commit comments