elderjs-plugin-google-fonts

1.0.2 • Public • Published

elderjs-plugin-google-fonts

This plugin fetches fonts from google fonts, generates font-face definitions and inlines those in the head tag.

Usage

Simply install and add your config to elder.config.js. An example:

'elderjs-plugin-google-fonts': {
  fonts: {
    'Anton': ['400'],
    'Overpass': ['400', '700i'],
    'Inter': ['400'],
  },
  subsets: 'latin'
}

/elderjs-plugin-google-fonts/

    Package Sidebar

    Install

    npm i elderjs-plugin-google-fonts

    Weekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    4.13 kB

    Total Files

    4

    Last publish

    Collaborators

    • kevmodrome