Create-react-app: How to use PostCSS features?

Created on 25 Apr 2017  路  2Comments  路  Source: facebook/create-react-app

Should I specify build-css and watch-css for using PostCSS nesting?
Can you help with watch-css field for PostCSS?

Most helpful comment

I've created a simple wrapper around react-scripts that injects postcss plugins to webpack config. Works like a charm for me.
Use at your own risk :)

https://github.com/mihhail-lapushkin/react-scripts-x

All 2 comments

There is no support for any PostCSS features out of the box. We are only using it for Autoprefixer internally. If you eject, you can customize the configuration, and change it to your liking.

I've created a simple wrapper around react-scripts that injects postcss plugins to webpack config. Works like a charm for me.
Use at your own risk :)

https://github.com/mihhail-lapushkin/react-scripts-x

Was this page helpful?
0 / 5 - 0 ratings