Have ideas to improve npm?Join in the discussion! »

    @slixites/gatsby-plugin-google-fonts

    1.1.1 • Public • Published

    @slixites/gatsby-plugin-google-fonts

    Build Status Known Vulnerabilities codecov Dependencies

    How to use it ?

    yarn add @slixites/gatsby-plugin-google-fonts
    // or
    npm install --save @slixites/gatsby-plugin-google-fonts

    Add fonts to your gatsby-config.js:

    module.exports = {
      // ...
      plugins: [
        // ...
        {
          resolve: '@slixites/gatsby-plugin-google-fonts',
          options: {
            fonts: [
              'Montserrat',
              'source sans pro\:300,400,400i,700',
            ],
            display: 'swap',
            preconnect: true,
            attributes: {
                rel: 'stylesheet preload prefetch',
                as: 'style',
            },
          },
        },
        // ...
      ]
      // ...
    }

    How to find great ideas ?

    Install

    npm i @slixites/gatsby-plugin-google-fonts

    DownloadsWeekly Downloads

    57

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    9.71 kB

    Total Files

    6

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar