Padcef
PostCSS plugin to parse and download CSS external fonts
The aim of this plugin is to avoid cache, compression and other problems of fonts provided by external servers.
Installation
$ npm install padcef
Usage
// dependenciesvar fs = var postcss = var url = // css to be processedvar css = fs // process cssvar output = css
Options
dest
(default: "external-fonts"
)
Download fonts in this folder.
Todo
- new option: exclude
- new option: clean-dest
- new option: do not overwrite existing font files
- better tests (when url-regex and download will accept http://localhost or http://127.0.0.1)