Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Which is better dart sass or node sass?


Asked by Abner Escobar on Dec 11, 2021 Dart Code style guide



Dart Sass is the primary implementation of Sass, which means it gets new features before any other implementation. It’s fast, easy to install, and it compiles to pure JavaScript which makes it easy to integrate into modern web development workflows.
And,
Node Sass to Dart Sass Before v4.3.0, this project was built based on node-sass, but node-sass low-level dependencies libsass, resulting in many users installing Especially difficult for Windows users, it forces users to install python2 and Visual Studio in the windows environment to compile successfully.
In respect to this, If you went through any of the Webpack/Sass tutorials out there currently, they will likely have suggested you use node-sass. Dart Sass seems less popular. It gets better (worse). There are two Dart Sass packages. dart-sass does not work. sass does. I don't know why.
In this manner,
Before v4.3.0, this project was built based on node-sass, but node-sass low-level dependencies libsass , resulting in many users installing Especially difficult for Windows users, it forces users to install python2 and Visual Studio in the windows environment to compile successfully.
Also Know,
If you want to use Sass's @use instead of their @include (which is deprecated) and you're using Webpack with sass-loader you need to use Dart Sass via npm install sass NOT npm install dart-sass and not node-sass or any other sass package. Really, Webpack is irrelevant. You need npm install sass if you want @use, period.