postcss-webfontloader
Provides fallbacks for loading fonts with webfontloader.
Setup
yarn add postcss-webfontloader
// postcss.config.jsmoduleexports = plugins: 'postcss-webfontloader': modules: false families: 'Lora'
Basic usage
Input
/* base.css */
Output
/* base.css */
Output for CSS Modules
If you're using CSS Modules, set modules
to true
to get the following output:
/* base.css */)