You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 12, 2017. It is now read-only.
首先,我的需求是,在构建的时候设置process.env.NODE_ENV为“product”或“dev”,然后在项目中根据NODE_ENV加载不同的项目配置文件,然而在使用中我发现在项目中(入口文件)无法获取NODE_ENV,只有在cooking的配置文件中获取才是有效的
我尝试着分析,发现如下:
在cooking的配置文件中console.log(process)打印出来的是我想要的内容,title为"npm",而在入口文件中console.log(process)打印出来的title是"browser",env是空的
The text was updated successfully, but these errors were encountered: