astroturfcss / astroturf

Better Styling through Compiling: CSS-in-JS for those that want it all.
https://astroturfcss.github.io/astroturf/
MIT License
2.28k stars 60 forks source link

feat: move default css handling to plugin #671

Closed jquense closed 3 years ago

jquense commented 3 years ago

Removes all the fancy webpack loader stuff and replaces it with just compiling the CSS directly with postcss-nested for plain .css files. A lot of the reason we wanted this stuff anyway was to reduce webpack config with css-loader, but since they added auto handling of .module.* files, we can just change the default extension and get that for free.

BREAKING CHANGE: default extension is now .module.css