Open youngjuning opened 6 years ago
npm install font-spider -g
解决方法: 修改 node_modules\font-spider\src\spider\index.js (Ubuntu的node_modules在/usr/local/lib/目录下)文件中的 getWebFonts 函数将以下判断去除:
node_modules\font-spider\src\spider\index.js
Ubuntu的node_modules在/usr/local/lib/
解决方法: .ttf 文件是必须要有的,其他格式的文件会自动生成。
.ttf
font-spider-plus(字蛛+)是一个智能 WebFont 压缩工具,它能自动分析出本地页面和线上页面使用的 WebFont 并进行按需压缩。
Windows
安装
npm install font-spider -g
错误警告
解决方法: 修改
node_modules\font-spider\src\spider\index.js
(Ubuntu的node_modules在/usr/local/lib/
目录下)文件中的 getWebFonts 函数将以下判断去除:解决方法:
.ttf
文件是必须要有的,其他格式的文件会自动生成。