Description
Dart Sass is in Release Candidate phase now, with a full release probably coming next week. It would be great to add support to this package for choosing between Node Sass and Dart Sass. I'm willing to create a pull request, but I'm not sure what the best design would be.
Right now, this package has a compiler
field that can be configured, like so:
var sass = require('gulp-sass');
sass.compiler = require('dart-sass');
However, because gulp-sass
includes Node Sass in its dependencies, this still requires users to get Node Sass even if they want to use Dart Sass—which is often a big pain, since that can involve building C code. One way around this would be to remove Node Sass as a dependency and require users to pass in the version of the compiler they want to use, either using the existing API or using something like
var sass = require('gulp-sass')(require('dart-sass'));