-
Notifications
You must be signed in to change notification settings - Fork 402
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
运行报错 #109
Comments
貌似是把 |
将路径全部换成绝对路径后 <link rel="stylesheet" href="https://zongren.me/css/style.css" media="screen" type="text/css"> 再执行 11:14:32 › font-spider public/*.html --debug --map "https://zongren.me/fonts /Users/zongren/blog/public/fonts"
Loading ..
Load: public/404.html
Load: public/README.html
Load: public/baidu_verify_Neaaf6qfNd.html
Load: public/baidu_verify_VWfJTLiWhl.html
Load: public/googlecf611fe761231af4.html
Load: public/index.html
Load: https://zongren.me/css/error.css
Load: https://zongren.me/css/katex.min.css
Load: https://zongren.me/css/style.css
Load: https://zongren.me/css/katex.min.css
DEBUG { "url": "/Users/zongren/blog/public/baidu_verify_VWfJTLiWhl.html" }
DEBUG { "url": "/Users/zongren/blog/public/baidu_verify_Neaaf6qfNd.html" }
DEBUG { "url": "/Users/zongren/blog/public/googlecf611fe761231af4.html" }
Load: https://zongren.me/css/style.css
Load: https://zongren.me/css/katex.min.css
...
Loading ...
Error: does not support remote path "https://zongren.me/fonts/source.eot?"
at /usr/local/lib/node_modules/font-spider/src/compressor/index.js:38:23
at Array.forEach (native)
at Compress.<anonymous> (/usr/local/lib/node_modules/font-spider/src/compressor/index.js:36:23)
at new Compress (/usr/local/lib/node_modules/font-spider/src/compressor/index.js:24:12)
at /usr/local/lib/node_modules/font-spider/src/compressor/index.js:230:16
at Array.map (native)
at module.exports (/usr/local/lib/node_modules/font-spider/src/compressor/index.js:229:37)
at /usr/local/lib/node_modules/font-spider/bin/font-spider:174:16
at process._tickCallback (node.js:369:9) |
将 <link rel="stylesheet" href="css/style.css" media="screen" type="text/css"> 并且对单个文件执行 font-spider public/index.html |
目前的解决办法是 |
问题本质是 font-spider 无法识别 |
了解 |
@aui 他这个public是发布阶段了已经,不可能每次都这么改啊,那就太麻烦了啊 |
使用脚本自动修改的 |
@appleyuchi 类似这种 |
@zongren 作者已经没在维护了吧,一大堆的issue. 您看应该怎么办呢?谢谢 |
@zongren 按照您说的改成绝对路径了,不行啊,报错依旧 |
@zongren 我碰到的是这个: |
你这是图标吧,本来也不需要处理,看看能不能忽略这个错误 |
已经解决,附上链接,谢谢两位大神: |
网站的目录结构是这样的
其中
style.css
是按照教程写的font-face
/public/index.html
和/public/categories/android/index.html
中的css
链接为运行
font-spider
报以下错误The text was updated successfully, but these errors were encountered: