This package is an alternative to the sass
package but use grass
as Sass compiler.
module.exports = {
module: {
rules: [
// ...
{
test: /\.scss$/,
use: [
// other loaders
{
loader: "sass-loader",
options: {
implementation: require("@natsuneko-laboratory/rust-sass/lib/sass-loader"),
},
},
],
},
],
},
};
sass
(JS-compiled) is an easy to use but 2.5x and 10x slower than Dart VM.sass
(Dart VM) is a high-performance but dependent on platform outside of Node.js.
dart
: ~10000ms (10s)- Run:
pnpm run test:dart
- Run:
node
: ~2000ms (2s)- Run:
pnpm run test:node
- Run:
rust
: ~1500ms (1.5s)- Run:
pnpm run test:rust
- Run:
$ npm version [major|minor|patch]
$ git push --follow-tags
MIT by @6jz