Description
This postcss module takes your local custom font and encode it to a base64 string which is included in your css. The supported formats are currently woff, woff2, ttf, and eot. This module is subject to change. Contribution appreciated!
Install
npm install --save-dev postcss-font-base64
or
yarn add postcss-font-base64 --dev
Example
Input
Output
Config
In your postcss.config.js add this module:
moduleexports = plugins: ... //future options will be handled here
Options
There are currently no options available. Please suggest!
Disclaimer
This is my first postCss plugin, feel free to contribute, comment or help out 🍺