简体   繁体   中英

using node-sass instead of sass

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)

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM