gatsby-plugin-purify-css
Gatsby plugin for removing unused CSS in production.
Last updated a year ago by rongierlach .
GPL-3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gatsby-plugin-purify-css 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 2.2.1                                ...           latest (a year ago)

9 Versions

  • 2.2.1                                ...           a year ago
  • 2.2.0                                ...           a year ago
  • 2.1.0                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.0                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
  • 0.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 12
Last Day 9
Last Week 12
Last Month 7
Dependencies (7)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |