JSW
  • 🏠 首页
  • › 日志
  • › 正文

React CRA的.env加顺序

Note: this feature is available with react-scripts@1.0.0 and higher.

🕐 2021-12-19 12:57:28

默认:

  • npm start: .env.development.local, .env.local, .env.development, .env
  • npm run build: .env.production.local, .env.local, .env.production, .env

参考:

https://create-react-app.dev/docs/adding-custom-environment-variables/

JSW
日志 笔记 代码 作品 关于
🐱 © 2021-2024 鄂ICP备2023002340号-1
    JSW
  • 导航菜单
  • 日志
  • 笔记
  • 经验
  • 代码
  • 作品
  • 相册
  • 专辑
  • 关于
  • 链接
  • 🐱 GitHub