Add support for Dart Sass
See original GitHub issueDart 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'));
Issue Analytics
- State:
- Created 5 years ago
- Reactions:20
- Comments:9 (2 by maintainers)
Top GitHub Comments
I’d really like Dart Sass to be a first-class implementation, and naming its package
gulp-dart-sass
while the package namedgulp-sass
only supports Node Sass doesn’t really frame it that way. I’d prefer to see a solution where users explicitly decide which implementation to use, possibly using the pattern I outlined above, even if that does increase the first-time setup friction somewhat.@xzyfer You and I may be hearing from different people, but I’ve heard a lot of noise around people who have had bad Node Sass installation experiences.
We see relatively few issues with regards to installation of node-sass. Our resolution to this issue will be to enable dart-sass as an option for those who want it, without introducing any new friction to the millions of monthly downloads that happen issue free.
Given the nature of gulp packages I see space for a gulp-dart-sass to live along side gulp-ruby-sass etc…
On Tue., 8 May 2018, 6:31 pm Matt Steele, notifications@github.com wrote: