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

关于项目默认有关https://unpkg.com域名的css资源路径更改问题 #603

Closed
1 task
youguo233 opened this issue Nov 27, 2023 · 5 comments
Closed
1 task

Comments

@youguo233
Copy link

Blessing Skin 版本

lastest

PHP 版本

7.3

出现问题时所使用的浏览器

Chrome

您正在使用的 Web Server

None

您正在使用宝塔吗?

出现了什么问题?

我发现网站加载慢就是因为这个域名资源请求很慢,请问哪里可以配置或者更改代码呢?
我想把这些资源挂到自己的cdn上。
感谢!!!

错误日志

No response

重现步骤

@SRY-CTB
Copy link

SRY-CTB commented Nov 27, 2023

在www/wwwroot/blessing.example/resources/views/shared部分,head.twig文件中可以修改加载的地址。若果其他地方的文件加载慢也可以修改,不一定只在/shared下。
注意:这并不是一个很好的办法,不知道升级blessing后是否会被覆盖

@youguo233
Copy link
Author

谢谢

@shenyunuoyan
Copy link

请问这个资源文件怎么下载下来

@SRY-CTB SRY-CTB mentioned this issue Jan 5, 2024
1 task
@PonderFox0643
Copy link

PonderFox0643 commented Jan 12, 2024

请问这个资源文件怎么下载下来

不建议下载,我已经帮你实践过了,直接下载这个并引用后无效,建议使用国内cdn比如

https://cdn.bootcdn.net/ajax/libs/font-awesome/5.15.4/css/all.min.css

将它替换掉/resources/views/shared/head.twig 中的

https://unpkg.com/@fortawesome/fontawesome-free@5.15.4/css/all.min.css

部分,亲测有效
不过我可能引用本地的方法不对,如果有人搞出来本地化请踢我一下,我需要学习

@xqzr
Copy link

xqzr commented Jan 12, 2024

#410 (comment)

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

5 participants