Skip to content

Commit

Permalink
Merge pull request #154 from komlev/master
Browse files Browse the repository at this point in the history
Adding description of using postcss-js parser with babel 6 compiler
  • Loading branch information
michael-ciniawsky committed Dec 21, 2016
2 parents 19011fb + b73cfc8 commit b66a294
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ export default {
}
```

> If you are using Babel >= v6 you need to do the following in order for the setup to work
> 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:

```js
Expand All @@ -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

Expand Down

0 comments on commit b66a294

Please sign in to comment.