Switching from node-sass to dart sass in my angular-cli project
@angular-devkit/build-angular
has support for dart sass, only you're using the wrong module, try npm install sass
as apposed to dart-sass
.
You can see the source code that will confirm this here: https://github.com/angular/angular-cli/pull/11791/commits/2c26bce9a5e2472239d755f585df9458f28b9b7f
FWIW, in order to get angular 7.x to use the sass
package and not try to install node-sass, I had to:
- remove
@angular-devkit/build-angular
from my package.json - delete node_modules
- npm install
- npm i -D sass
- add back in the 0.13.10 of
@angular-devkit/build-angular
to package.json - npm install again.