Skip to content

Commit

Permalink
document postcss usage more accurately
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle MacDonald committed Oct 6, 2016
1 parent 272cf3f commit 70eba5c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -24,9 +24,13 @@ This is nothing more than a light wrapper around a postcss configuration object.
const postcss = require('postcss')
const cssStandards = require('spike-css-standards')

postcss(cssStandards(/* options */))
const standards = cssStandards(/* options */)
// returns { parser: 'xxx', plugins: ['xxx'] }

postcss(standards.plugins)
.process(someCss)
.then((res) => { console.log(res.content) })

```

By default, the css standard plugin pack includes:
Expand Down

0 comments on commit 70eba5c

Please sign in to comment.