Closed
Description
There are a number of Node.js tools out there today that use Node Sass, either directly or as a plugin for a broader build system. In order to make it easier for JS users to use Node Sass, we should help those tools migrate to something that supports Dart Sass as well.
Given a tool that depends on Node Sass and imports it directly, this probably means:
-
Removing the Node Sass dependency.
-
Changing the API to take the Sass implementation as a parameter. How this work may depend on the specific library involved, but one simple example would be:
var sass = require('gulp-sass')(require('sass'));
-
This will probably be a breaking change to the package, so include a major version bump.
These seem to be the most widely-used integration packages:
-
sass-loader
(for Webpack) — dart-sass? webpack-contrib/sass-loader#435 (pull request: Make this package implementation-agnostic webpack-contrib/sass-loader#573) -
react-scripts
— Add support for Dart Sass facebook/create-react-app#5282 -
gulp-sass
— Add support for Dart Sass dlmanning/gulp-sass#672 (pull request: Make this package implementation-agnostic dlmanning/gulp-sass#694) -
broccoli-sass-source-maps
— Add support for Dart Sass adopted-ember-addons/broccoli-sass-source-maps#26 (pull request: Make this package implementation-agnostic adopted-ember-addons/broccoli-sass-source-maps#28) -
ember-cli-sass
— Add support for Dart Sass adopted-ember-addons/ember-cli-sass#184 (pull request: Make this package implementation-agnostic adopted-ember-addons/ember-cli-sass#186) -
grunt-sass
— Add support for Dart Sass sindresorhus/grunt-sass#278 (pull request: Add support for Dart Sass sindresorhus/grunt-sass#283) -
eyeglass
— support dart-sass linkedin/eyeglass#173
(If anyone has any more packages, let us know!)