-
Notifications
You must be signed in to change notification settings - Fork 314
fix(ci): compress build chunks #1375
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
Conversation
PR preview has been successfully built and deployed to https://tiny-vue-pr-1375.surge.sh. |
1 similar comment
PR preview has been successfully built and deployed to https://tiny-vue-pr-1375.surge.sh. |
0d40fe7
to
5a381ac
Compare
PR preview has been successfully built and deployed to https://tiny-vue-pr-1375.surge.sh. |
5a381ac
to
2ae9c09
Compare
PR preview has been successfully built and deployed to https://tiny-vue-pr-1375.surge.sh. |
vite打包优化:现状:
E:/tiny-vue/examples/sites/demos/pc/app/link-menu/basic-usage-composition-api.vue?vue&type=script&setup=true&lang.jsx
E:/tiny-vue/examples/sites/demos/pc/app/link-menu/basic-usage.vue?vue&type=script&lang.jsx
E:/tiny-vue/examples/sites/demos/pc/app/link-menu/custom-foot-composition-api.vue?vue&type=script&setup=true&lang.jsx 打包时,上面的三个文件最终会生成三个文件。
可以在这个网站测试一下:vite-plugin-static-copy 解决1.
|
vite packaging optimization:status quo:
E:/tiny-vue/examples/sites/demos/pc/app/link-menu/basic-usage-composition-api.vue?vue&type=script&setup=true&lang.jsx
E:/tiny-vue/examples/sites/demos/pc/app/link-menu/basic-usage.vue?vue&type=script&lang.jsx
E:/tiny-vue/examples/sites/demos/pc/app/link-menu/custom-foot-composition-api.vue?vue&type=script&setup=true&lang.jsx When packaged, the three files above will eventually generate three files.
You can test it on this website: vite-plugin-static-copy solve1. @demosOnly one app is needed in the @demos folder, delete all other flat folders, and delete files ending with 2. Chunk mergingIt is best to generate only one packaging file for each component and use rollup's manualChunks to process it. |
@@ -0,0 +1 @@ | |||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mengqiuleo 需要移除误提交的文件
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个是要提交的,surge 会认为跨域,这个是解决跨域问题的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
现在这个vite分包还是有问题的,会出现上面的错误,但是我解决不了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是vite打包循环依赖了,我晚上再处理下
2ae9c09
to
746d1bb
Compare
PR preview has been successfully built and deployed to https://tiny-vue-pr-1375.surge.sh. |
1 similar comment
PR preview has been successfully built and deployed to https://tiny-vue-pr-1375.surge.sh. |
这样打包是错误的,打出来的包全是循环引用,可以拿 madge 测一下,全都是,完全不能用 |
This is wrong to package |
1fdef08
to
a6c6c3d
Compare
PR preview has been successfully built and deployed to https://tiny-vue-pr-1375.surge.sh. |
Deploy PR preview failed. |
a6c6c3d
to
c116985
Compare
Deploy PR preview failed. |
要不用 vercel preview 吧,目前没有找到好的分包方式 |
Why don't you use vercel preview? I haven't found a good subcontracting method yet. |
可以尝试下 vercel |
You can try vercel |
@kagol , 麻烦在 vercel 上部署一下吧,我重新 commit 一下 |
@kagol, please deploy it on vercel, I will re-commit it |
相关讨论:#1381 |
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information