3 ms·
I've had a lot of success with CSS modules together with PostCSS. CSS modules are great if you're building a component based application using something like Re
by hakanito 10y ago
I've had a lot of success with CSS modules together with PostCSS. CSS modules are great if you're building a component based application using something like React, as it lets you sandbox the stylesheet together with the component's JS file, and forget about potential naming collisions. The PostCSS ecosystem has many modules that enables extra features, which you put in your webpack config.
I used sass before, but not looking back now as you get the same features with postcss. Also, the node-sass bindings are always a mess to deal with.