using node-sass instead of sass

Viewed 502

I mean this question a genuine curiosity.

If you're using node, npm (or yarn) and you have a package.json with scripts that you can tell your CI to run to build your application/put together your assets, what is the reasoning behind choosing to implement node-sass over sass?

What would the reasons be to put your styles through your JS runtime? (That's what I understand it would be doing, I guess that's likely off by a mile)

1 Answers

node-sass is simply bindings to libsass so that JavaScript tools can call it. This is particularly essential for bundling tools like webpack which are written in JavaScript.

Related