From 70eba5cc3a94f78a4a002917f4c7bba59ede902e Mon Sep 17 00:00:00 2001 From: Kyle MacDonald Date: Thu, 6 Oct 2016 15:38:56 -0400 Subject: [PATCH] document postcss usage more accurately --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1f41825..5b81ed8 100644 --- a/README.md +++ b/README.md @@ -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: