Recently, the company’s internal project also needs to develop the function of custom fonts. Then I learned about font-spider, a web font extraction and compression tool, but after understanding it, I feel that there are still some improvements to be made.

  • Dynamic parsing of SPA pages is not supported
  • Webpack does not support the use, we also reflect more intense

Then, based on these two areas that can be improved, I drew up a technical plan and carried out the landing. If you are interested, you can help yourself: technical file: juejin.cn/post/702289… Git repository address: github.com/zhuzhengsho…