Re:Ask HN: Best Practices for CSS in a Modern JavaScript App
by hakanito on Friday September 23, 2016 @12:37AM
(#12562346)
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.
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.