build(demo-vue): adjust production build config and add terser

1. 新增terser依赖包用于代码压缩
2. 关闭terser压缩并注释rollup打包配置
3. 修改生产环境的NODE_ENV和API接口地址
This commit is contained in:
2026-05-23 18:47:22 +08:00
parent e848898981
commit 0d764c8fee
4 changed files with 62 additions and 11 deletions

View File

@@ -1,3 +1,3 @@
NODE_ENV=production
NODE_ENV=development
VITE_APP_TITLE='普达特科技有限公司'
VITE_APP_API_URL='http://www.wzy.com/api/'
VITE_APP_API_URL='/api'