3 ms·
The biggest thing Sass annoys me is in Node.js environment, I have to choose either node-sass which depends on native module which require extra compilation or
by namelosw 8y ago
The biggest thing Sass annoys me is in Node.js environment, I have to choose either node-sass which depends on native module which require extra compilation or matched pre-built binary. Or I have to choose ruby-sass which depends on a global installation of Ruby. Both of the options are brittle.
For SPA I found it's easier to use CSS-in-JS solution like styled-component or emotion. Or for Typescript I just use typestyle.
For non SPA I usually go vanilla CSS for simple stuff and stylus for complex stuff.
- arvinsim 8y ago> For SPA I found it's easier to use CSS-in-JS solution like styled-component or emotion. Or for Typescript I just use typestyle. Heck, even CSS modules is enough.
- namelosw 8y agoYes, CSS modules is pretty good. But most of the CSS-in-JS solutions could let me omit an extra loader since they're just JS.