Skip to content

Commit

Permalink
add example of appending plugins (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentdag authored and jescalan committed Oct 12, 2016
1 parent 6974449 commit a7e3678
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,21 @@ By default, the css standard plugin pack includes:
- [rucksack](https://simplaio.github.io/rucksack/), default settings
- [cssnano](http://cssnano.co/), toggled with the `minify` option which is false by default

Any of these plugins can be customized by passing options described below.
Any of these plugins can be customized by passing the [options](#options) described below. You can also add additional postCSS plugins (like the popular [`lost`](https://github.com/peterramsing/lost) grid, for example) on top of this package:

```js
// app.js
const cssStandards = require('spike-css-standards')
const lost = require('lost')

// ...
postcss: (ctx) => {
const css = cssStandards({ webpack: ctx })
css.plugins.push(lost())
return css
},
// ...
```

### Options

Expand Down

0 comments on commit a7e3678

Please sign in to comment.