https://github.com/indexzero/postcss-strip-font-face
PostCSS plugin to completely strip @font-face rules from css. In other words: koh the @font-face stealer.
https://github.com/indexzero/postcss-strip-font-face
Last synced: 11 months ago
JSON representation
PostCSS plugin to completely strip @font-face rules from css. In other words: koh the @font-face stealer.
- Host: GitHub
- URL: https://github.com/indexzero/postcss-strip-font-face
- Owner: indexzero
- License: mit
- Created: 2017-05-02T19:06:43.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-03-10T12:09:53.000Z (over 4 years ago)
- Last Synced: 2025-06-30T12:25:19.675Z (12 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# postcss-strip-font-face
PostCSS plugin to completely strip `@font-face` rules from css. In other words: [koh the `@font-face` stealer][koh].
``` scss
/* 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
``` scss
/* Any other scss content */
```
## Usage
Simple usage can be inferred from the tests:
``` js
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](https://github.com/indexzero)
[koh]: https://giphy.com/gifs/channelfrederator-avatar-the-last-airbender-channel-frederator-JkxzS75RQmkgw/