A Broccoli plugin for compiling SCSS and Sass files using Dart Sass or LibSass (via node-sass), with support for source maps (embedding sourcesContent). Version 4.3.0 is current, released May 2024, with slow release cadence (1-2 per year). Key differentiators: requires explicit Sass engine dependency, supports source maps by embedding sources, and offers options for silenceDeprecations and quietDeps. Designed for Ember and Broccoli-based build pipelines.
npm install broccoli-sass-source-mapsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compiles SCSS with source maps using Dart Sass, demonstrating the required factory pattern and positional arguments.
Update Node to >= 10.24.1
Replace require('node-sass') with require('sass') and adjust options accordingly.Use a post-processing step to correct source map paths, or accept that source maps point to wrong files.
Ensure you do require('broccoli-sass-source-maps')(require('sass')) not just require('broccoli-sass-source-maps').Replace require('broccoli-sass-source-maps') with require('broccoli-sass-source-maps')(require('sass'))Run npm install --save-dev sass (or node-sass)
Wrap the tree path in an array: [tree] instead of a single string.