Skip to content
New issue

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

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

Already on GitHub? # to your account

如果有注入CSS的话,Minify会失效 #1

Closed
CHOYSEN opened this issue Jan 7, 2021 · 3 comments
Closed

如果有注入CSS的话,Minify会失效 #1

CHOYSEN opened this issue Jan 7, 2021 · 3 comments

Comments

@CHOYSEN
Copy link
Contributor

CHOYSEN commented Jan 7, 2021

比如在examples/src/App.vue里加入 CSS 样式再vite build,Vite 对于 CSS 的注入会晚于pre的钩子。

我建议把templateminify拆成两个插件导出,你觉得 OK 的话我可以发个 PR。

@anncwb
Copy link
Collaborator

anncwb commented Jan 7, 2021

原先vite1.0的设计可以同时支持多个。我在看下有没有更好的方式

@anncwb
Copy link
Collaborator

anncwb commented Jan 7, 2021

2.0我正在测试 这几天会修复

anncwb added a commit that referenced this issue Jan 7, 2021
@anncwb
Copy link
Collaborator

anncwb commented Jan 7, 2021

刚看了下 vite2.0支持导出多个数组。现在修复了 .可以升级到2.0.0-beta.3

@anncwb anncwb closed this as completed Jan 7, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants