un-pany / v3-admin-vite

☀️ A vue3 admin template | vue3 admin/element plus admin/vite admin/vue3 template/vue3 后台/vue3 模板/vue3 后台管理系统
https://un-pany.github.io/v3-admin-vite
MIT License
5.27k stars 893 forks source link

打包的时候提示这个 #68

Closed toKnowMore closed 1 year ago

toKnowMore commented 1 year ago

NODE_ENV=production is not supported in the .env file. Only NODE_ENV=development is supported to create a development build of your project. If you need to set process.env.NODE_ENV, you can set it in the Vite config instead

搜了一下,有的文说是vite要降级到3版本,有没有什么正常的解决办法?

moon-in-river commented 1 year ago

能提供相关的环境版本信息吗

pany-ang commented 1 year ago

好的,我会马上处理

pany-ang commented 1 year ago

https://github.com/un-pany/v3-admin-vite/commit/2be53ddfc24c607305c295b5a220800225e61406