PostCSS plugin for import Google fonts
MIT License
PostCSS plugin for import Google fonts.
Syntax: @google-font font-family styles [args]
400,500,700italic
display=swap,subset=latin|latin-ext
@google-font Lato 400 subset=latin;
@google-font Lato 400 display=swap,subset=latin|latin-ext;
@import url(https://fonts.googleapis.com/css?family=Lato:400?subset=latin);
@import url(https://fonts.googleapis.com/css?family=Lato:400?display=swap&subset=latin,latin-ext);
postcss([ require('postcss-google-font') ])
See PostCSS docs for examples for your environment.