主页 > purgecss > 选项 > fontFace
如果你的 css 中有任何未使用的 @font-face 规则,你可以通过将 fontFace 选项设置为 true 来删除它们.
fontFace
true
签名
fontFace: boolean;
await new PurgeCSS().purge({ content: ['index.html', '*.js', '*.html', '*.vue'], css: ['css/app.css'], fontFace: true })