Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue3 如何打包成 测试包? #7426

Open
lihongguang-lhg opened this issue Nov 4, 2024 · 2 comments
Open

vue3 如何打包成 测试包? #7426

lihongguang-lhg opened this issue Nov 4, 2024 · 2 comments

Comments

@lihongguang-lhg
Copy link

版本号:3.7.0_all
问题描述:

vue3 如何打包成 测试包? 目前只有开发, 生产, 我想打包一个测试包

错误截图:

image
具体如何配置呢?

友情提示:

  • 未按格式要求发帖、描述过于简单的,会被直接删掉;
  • 描述问题请图文并茂,方便我们理解并快速定位问题;
  • 如果使用的不是master,请说明你使用的分支;
@vvyman
Copy link

vvyman commented Nov 5, 2024

构建命令上需要添加vite build --mode <环境名>, 不添加默认是 production,这个报错试试把 dist 文件夹删掉再 build 一次

@lihongguang-lhg
Copy link
Author

构建命令上需要添加vite build --mode <环境名>, 不添加默认是 production,这个报错试试把 dist 文件夹删掉再 build 一次

我把dist 删除 然后在build一次成功了, 但是打的包还是默认的 prod的包 没有打到 我的测试包, 怎么弄呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants