youlaitech / vue3-element-admin

🔥基于 vue3 + vite5 + typescript + element-plus 构建的后台管理前端模板(配套后端源码),vue-element-admin 的 vue3 版本。
https://vue3.youlai.tech
MIT License
1.3k stars 346 forks source link

ci: :ferris_wheel: 规整脚本执行命令 #88

Closed cshaptx4869 closed 4 months ago

cshaptx4869 commented 4 months ago

pnpm run build:prod 时提示: 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.

所以去除了 .env 文件中的 NODE_ENV 变量,如果需要的话得在 vite 配置文件的 define 中配置

去除 --mode 参数(默认情况下,开发服务器 (dev 命令) 运行在 development (开发) 模式,而 build 命令则运行在 production (生产) 模式)

增加了ts类型检测命令、预览命令、仅打包命令