Home > purgecss > Options > fontFace

Options.fontFace property

If there are any unused @font-face rules in your css, you can remove them by setting the fontFace option to true.

Signature:

fontFace: boolean;

Example

await new PurgeCSS().purge({
  content: ['index.html', '*.js', '*.html', '*.vue'],
  css: ['css/app.css'],
  fontFace: true
})