We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
child_process.spawn 和 child_process.exec
自进程里有个 env,这个参数就是被执行命令所能访问到的环境变量。
这里面的 env 参数,但是指定是不行的,需要 { ...process.env, 'NODE_ENV': 'xxxx'}, 才行,如果不合并 process.env,env 是不完整的,所以会报错。
**注意:**如果使用子进程来对 vue-cli 的项目进行 build 等操作,一定要注意 env 里的 NODE_ENV,是否与项目当前环境需要的环境变量一致。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
child_process.spawn 和 child_process.exec
自进程里有个 env,这个参数就是被执行命令所能访问到的环境变量。
这里面的 env 参数,但是指定是不行的,需要 { ...process.env, 'NODE_ENV': 'xxxx'}, 才行,如果不合并 process.env,env 是不完整的,所以会报错。
**注意:**如果使用子进程来对 vue-cli 的项目进行 build 等操作,一定要注意 env 里的 NODE_ENV,是否与项目当前环境需要的环境变量一致。
The text was updated successfully, but these errors were encountered: