DEV Community

loading...

Discussion on: Add PostCSS to Create-React-App

Collapse
puritanic profile image
Darkø Tasevski Author

This postcss-cli config is watching only one file for changes, main.css in styles/ folder. All the other files are imported inside that file, so it's basically watching all imported files.

If you want to watch the whole dir, you can do it too, but you need to change script command a bit, there are a few examples how to do that in the main postcss-cli repository.

About extension, simple .css will work fine, as far as I know, there is no official extension for postcss files, and community recommends using just plain old .css.

Collapse
karlkras profile image
Karl Krasnowsky • Edited

Well I'm looking into incorporating a large, existing library that is using the pcss exension exclusively, I was hoping to use it as is without renaming the entire code base.

Forem Open with the Forem app