Ember CLI Sass is an addon for Ember CLI applications that integrates Sass preprocessing into the build pipeline. It provides robust support for generating source maps, configuring include paths, and handling multiple CSS output files via Ember CLI's `outputPaths` configuration. Currently stable at version 11.0.1, the package is actively maintained with recent releases addressing internal chore items and node version compatibility. It defaults to using Dart Sass (compiled to pure JavaScript) for compilation but offers explicit configuration to utilize alternative implementations like `node-sass` (which uses LibSass for potentially faster compilation), allowing developers to choose based on their project's performance and dependency needs. It is a fundamental tool for styling Ember.js projects with Sass, ensuring seamless integration with the Ember CLI build system.
npm install ember-cli-sassVerified import paths — ran on the pinned version, not inferred.
Demonstrates `ember-cli-sass` installation and basic configuration within `ember-cli-build.js`, including `sassOptions` for include paths and an example of multiple CSS output paths.
Upgrade your Node.js version to 10 or higher. For example, using nvm: `nvm install 16 && nvm use 16`.
To use `node-sass` (LibSass), install it (`npm install --save-dev node-sass`) and configure `sassOptions.implementation` in `ember-cli-build.js`: `implementation: require('node-sass')`.For addon development, use `npm install --save ember-cli-sass sass` (or `node-sass`) instead of `--save-dev`.
Install the `sass` package: `npm install --save-dev sass`.
Try running `npm rebuild node-sass` to recompile the binding for your environment. If issues persist, check the `node-sass` GitHub repository for compatible Node.js versions or consider switching to the default `sass` (Dart Sass) implementation.
Review the specified Sass file and line number for syntax errors. Common issues include unmatched braces, parentheses, or incorrect use of Sass features.