Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

gatsby-plugin-purify-css

2.2.1 • Public • Published

Gatsby Plugin PurifyCSS

JavaScript Style Guide npm version dependencies Status devDependencies Status
As featured in Gatsby's community plugins.
A Gatsby post-build plugin that implements PurifyCSS.
Never worry about the size of your css framework again!
Updates your html files directly, removing any unused inline styles.

Install

$ npm install gatsby-plugin-purify-css

Usage

In your gatsby-config.js file:

module.exports = {
  plugins: [
    {
      resolve: 'gatsby-plugin-purify-css'
      options: {
        /* Defaults */
        styleId: 'gatsby-inlined-css',
        purifyOptions: {
          info: true,
          minify: true
        }
      }
    }
  ]
}

Options

PurifyCSS options are documented here.

install

npm i gatsby-plugin-purify-css

Downloadsweekly downloads

157

version

2.2.1

license

GPL-3.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability