# purgecss-brunch-extended

> Adds purgecss support to brunch.

Latest version **1.1.0** (published 2018-09-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install purgecss-brunch-extended
pnpm add purgecss-brunch-extended
yarn add purgecss-brunch-extended
bun add purgecss-brunch-extended
```

## 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 | 1.1.0 |
| Published | 2018-09-13 |
| First published | 2018-09-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jeffrey Guenther |
| Maintainers | hwiehen |

## Links

- npm: https://www.npmjs.com/package/purgecss-brunch-extended
- Repository: https://github.com/holgerw/purgecss-brunch-extended
- Homepage: https://github.com/holgerw/purgecss-brunch-extended.git
- Issues: https://github.com/holgerw/purgecss-brunch-extended/issues
- npm.io page: https://npm.io/package/purgecss-brunch-extended

## Dependencies (1)

- [purgecss](https://npm.io/package/purgecss.md) ^0.21.0

## Recent versions

- 1.1.0 (latest) — 2018-09-13

## README

## purgecss-brunch
Adds purgecss support to
[brunch](http://brunch.io).

## Usage
Install the plugin via npm with `npm install --save-dev purgecss-brunch`.

Or, do manual install:

* Add `"purgecss-brunch": "~1.0.0"` to `package.json` of your brunch app.
* If you want to use git version of plugin, use the GitHub URI
`"purgecss-brunch": "jeffreyguenther/purgecss-brunch"`.

### Tailwind CSS

This plugin was created for use with
[Tailwind](https://tailwindcss.com/docs/controlling-file-size#removing-unused-css-with-purgecss)

Add the following plugin definition. Note this config adds a custom extractor
to handle the special characters in class names.

```
purgecss: {
      paths: [
        path.resolve("../lib/hello_web/templates/**/*.html.eex")
      ],
      extractors: [{
        extractor: class {
          static extract(content) {
            return content.match(/[A-z0-9-:\/]+/g) || [];
          }
        },
        extensions: ['html', 'eex', 'js']
      }]
    }
```

## License

The MIT License (MIT)

Copyright (c) 2018 Jeffrey Guenther (guenther.jeffrey@gmail.com)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

---
_Source: https://npm.io/package/purgecss-brunch-extended · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
