font-face-extract
用于提取html文件中有使用自定义字体 (WebFont) 的文字及对应字体的文件路径。 可以结合字体提取工具 (例如:fontmin) 来压缩精简自定义字体。
Used to extract the font-face text in the html file.
API
npm install font-face-extract
const FontFaceExtract = ;let extract = src:'xxx/demo1.html''xxx/demo2.html'; extract;
相关
https://github.com/sbfkcel/fws
fws
是一个前端脚手架工具,其中字体精简部分就有使用到font-face-extract
License
ISC