# gatsby-plugin-purify-css

> Gatsby plugin for removing unused CSS in production.

Latest version **2.2.1** (published 2017-10-13) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install gatsby-plugin-purify-css
pnpm add gatsby-plugin-purify-css
yarn add gatsby-plugin-purify-css
bun add gatsby-plugin-purify-css
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.1 |
| Published | 2017-10-13 |
| First published | 2017-09-19 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| Author | Ron Gierlach |
| Maintainers | rongierlach |
| Keywords | gatsby, plugin, purify, uncss, css |

## Links

- npm: https://www.npmjs.com/package/gatsby-plugin-purify-css
- Repository: https://github.com/rongierlach/gatsby-plugin-purify-css
- Homepage: https://github.com/rongierlach/gatsby-plugin-purify-css#readme
- Issues: https://github.com/rongierlach/gatsby-plugin-purify-css/issues
- npm.io page: https://npm.io/package/gatsby-plugin-purify-css

## Dependencies (7)

- [klaw](https://npm.io/package/klaw.md) ^2.1.0
- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.2
- [postcss](https://npm.io/package/postcss.md) ^6.0.11
- [bluebird](https://npm.io/package/bluebird.md) ^3.5.0
- [purify-css](https://npm.io/package/purify-css.md) ^1.2.5
- [through2-filter](https://npm.io/package/through2-filter.md) ^2.0.0
- [postcss-discard-duplicates](https://npm.io/package/postcss-discard-duplicates.md) ^2.1.0

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 2.2.1 (latest) — 2017-10-13
- 2.2.0 — 2017-10-13
- 2.1.0 — 2017-09-19
- 2.0.0 — 2017-09-19
- 1.1.0 — 2017-09-19
- 1.0.0 — 2017-09-19
- 0.0.2 — 2017-09-19
- 0.0.1 — 2017-09-19
- 0.0.0 — 2017-09-19

## README

# Gatsby Plugin PurifyCSS
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
 [![npm version](https://badge.fury.io/js/gatsby-plugin-purify-css.svg)](https://badge.fury.io/js/gatsby-plugin-purify-css) [![dependencies Status](https://david-dm.org/rongierlach/gatsby-plugin-purify-css/status.svg)](https://david-dm.org/rongierlach/gatsby-plugin-purify-css) [![devDependencies Status](https://david-dm.org/rongierlach/gatsby-plugin-purify-css/dev-status.svg)](https://david-dm.org/rongierlach/gatsby-plugin-purify-css?type=dev)  
As featured in Gatsby's [community plugins](https://www.gatsbyjs.org/docs/plugins/#community-plugins).  
A [Gatsby](https://github.com/gatsbyjs/gatsby) post-build plugin that implements [PurifyCSS](https://github.com/purifycss/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:
```javascript
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](https://github.com/purifycss/purifycss#the-optional-options-argument).

---
_Source: https://npm.io/package/gatsby-plugin-purify-css · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
