From bf0d7ee3ae276e8d6d2798cd7f7addbf2176065d Mon Sep 17 00:00:00 2001 From: Valeriy Komlev Date: Wed, 21 Dec 2016 13:58:06 +0300 Subject: [PATCH 1/2] Adding description of using postcss-js parser with babel 6 compiler --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 34147b34..1c213cf0 100644 --- a/README.md +++ b/README.md @@ -180,6 +180,11 @@ export default { } ``` +> If you are using babel 6 compiler and up you need to do the following in order for setup to work + +> * It is suggested to have only **default** export per style module +> * You need to add [babel-plugin-add-module-exports] to you configuration + If you use JS styles without `postcss-js` parser, you can add `exec` parameter: ```js @@ -196,6 +201,7 @@ If you use JS styles without `postcss-js` parser, you can add `exec` parameter: ``` [postcss-js]: https://github.com/postcss/postcss-js +[babel-plugin-add-module-exports]: https://github.com/59naga/babel-plugin-add-module-exports ### Dynamic Config From b73cfc8c602ca2fb1c47ef64ed0507e2fdd0cd93 Mon Sep 17 00:00:00 2001 From: Valeriy Komlev Date: Wed, 21 Dec 2016 15:17:45 +0300 Subject: [PATCH 2/2] Fixing grammar issues in README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1c213cf0..5819e5c1 100644 --- a/README.md +++ b/README.md @@ -180,10 +180,10 @@ export default { } ``` -> If you are using babel 6 compiler and up you need to do the following in order for setup to work +> If you are using Babel >= v6 you need to do the following in order for the setup to work -> * It is suggested to have only **default** export per style module -> * You need to add [babel-plugin-add-module-exports] to you configuration +> 1. Add [babel-plugin-add-module-exports] to your configuration +> 2. You need to have only one **default** export per style module If you use JS styles without `postcss-js` parser, you can add `exec` parameter: