font-spider
font-spider copied to clipboard
check sum out of bound
字體
@font-face {
font-family: 'f';
src: url('../fonts/f webfont.eot');
src: url('../fonts/f webfont.eot?#font-spider') format('embedded-opentype'),
url('../fonts/f webfont.woff2') format('woff2'),
url('../fonts/f webfont.woff') format('woff'),
url('../fonts/f webfont.ttf') format('truetype'),
url('../fonts/f webfont.svg') format('svg');
font-weight: normal;
font-style: normal;
}
.test {
font-size: 5vw;
font-family: f;
}
run font-spider ./*.html后報錯
我也碰到了,是权限问题 mac上执行 sudo chmod -R 777 文件夹
我也碰到了,是权限问题mac上执行sudo chmod -R 777文件夹
为什么我输入执行之后,依旧报错呢?
我也遇到这个问题,你们怎么解决的呢
https://github.com/aui/font-spider/blob/c1547c4da8c38e0625145be5c4826b444ce28997/src/compressor/index.js#L141
- text: webFont.chars || '#' // 传入任意字符避免 [email protected] BUG
+ text: webFont.chars + '#' || '#' // 传入任意字符避免 [email protected] BUG
这样改一下,应该就可以了