-
-
Notifications
You must be signed in to change notification settings - Fork 126
fix: 修复代码块图标不能正确显示问题(#600) #616
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
|
@Montaro2017 is attempting to deploy a commit to the yunyoujun's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Lint need to be fixed. |
|
我这里使用了pwa,此pr的修复依旧没有生效 @Montaro2017 |
有复现地址吗 |
|
有仓库地址吗 |
仓库为私有未公开,我试一下去掉pwa功能后能不能正常显示图标 |
我自己测试了没问题啊,https://dev.blog.montaro.cn/posts/js-code |
那就奇怪了,我这里就是不显示 |
可以了,我之前把 |
怪了,云端构建的还是不显示 现在本地构建又不显示了,只有pnpm dev显示了 |
|
那就是没有生成样式,你有办法debug一下吗,vitepress-group-icons插件有一个groupIconVitePlugin |
使用 |
|
发现问题了,我自定义的图标可以显示,但插件自带的默认图标是一个都不显示 |
而且设置了文件拓展名的图标也不显示 |
|
@MengNianxiaoyao 是不是dev的时候能看见,build后就看不见 |
是的,dev的时候全部格式的都能显示图标,但是build后只能显示我配置过的才能显示 |
太玄学了,我分别debug了我自己的项目和valaxy的demo,我发现构建的时候,插件的钩子调用顺序不一样,valaxy的demo是先调用transform钩子再调用load钩子,这样是没问题的,但我自己的项目是先调用load钩子再调用transform钩子,这样写出的css就少了一部分 |
那我这边可能也差不多吧。。。昨天尝试调整配置,第一次build后是正常的,改动了之后第二次build就成老样子了。前天也是这样。。。 |
修复代码块图标不能正确显示问题
#600