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

寻求替代品 #107

Open
yangxu52 opened this issue Jul 8, 2024 · 2 comments
Open

寻求替代品 #107

yangxu52 opened this issue Jul 8, 2024 · 2 comments

Comments

@yangxu52
Copy link

yangxu52 commented Jul 8, 2024

如题:
这个插件已经不维护了,并且他的PostCSS和vue主线的PostCSS版本冲突。

讨论,
现在是否还需要精灵图这种方式来优化网络请求,是否有比较简单将assets/xxx/icons/下的svg建立统一使用的插件?

@liucjuan
Copy link

如题: 这个插件已经不维护了,并且他的PostCSS和vue主线的PostCSS版本冲突。

讨论, 现在是否还需要精灵图这种方式来优化网络请求,是否有比较简单将assets/xxx/icons/下的svg建立统一使用的插件?

vite-svg-loader试过吗

@FrankFang
Copy link

你确实可以直接引入 svg 文件变成一个 svg 节点来使用,这样一来就可以做到按需 import 了

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

3 participants