📜  create-react-app 环境变量 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:49.737000             🧑  作者: Mango

代码示例1
process.env.NODE_ENV gives you either "development" or "production" or "test"
When you run npm start it is equal to develpment
When you run npm run build it is equal to production
When you run npm test it is equal to test