postcss-strip-font-face

1.0.0 • Public • Published

postcss-strip-font-face

PostCSS plugin to completely strip @font-face rules from css. In other words: koh the @font-face stealer.

/* Any other scss content */
@font-face {
  font-family: 'Any Font';
  font-style: normal;
  font-weight: 400;
  src: local('Any Font')local('AnyFont')url(https://any.cdn-provider.guru/any-font.woff2) format('woff2');
}

becomes

/* Any other scss content */

Usage

Simple usage can be inferred from the tests:

var postcss = require('postcss');
var stripFontFace = require('postcss-strip-font-face');
 
var processor = postcss([stripFontFace]);
var output = processor.process('/* Any scss content */');
console.log(output.css);
LICENSE: MIT
AUTHOR: Charlie Robbins

Package Sidebar

Install

npm i postcss-strip-font-face

Weekly Downloads

231

Version

1.0.0

License

MIT

Last publish

Collaborators

  • indexzero