1.0.0 • Published 5 years ago

gatsby-plugin-cmz v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

gatsby-plugin-cmz

This plugin checks which cmz classnames have been used in gatsby's SSR, and inlines them in a <style> tag, to avoid a FOUC.

Instructions

  • npm install -S gatsby-plugin-cmz
  • add to the plugins section of your gatsby-config.js:
plugins: [
  // ...
  // other plugins
  // ...
  
  {
    resolve: 'gatsby-plugin-cmz',
  }
]

Note: This is intended for use with cmz >= 3.13.0

Acknowledgenments

Inspired by gatsby-plugin-glamor