This repo demonstrates usage of dart-sass using both a Docker container to run the linux binary (for cross compatibility) and also natively using the arm64 binary on an M1 mac
Following https://mybyways.com/blog/running-sass-in-a-container
Download dart-sass-1.62.0-linux-x64.tar
brew install docker --cask # UI install
Now open Docker.app
and perform setup. Then using the Dockerfile in this repo run:
docker build -t sass ./
docker run --rm -it --init -v /[dir-to-scss-files]:/css sass
Download https://github.com/sass/dart-sass/releases/download/1.62.0/dart-sass-1.62.0-macos-arm64.tar.gz
cd native/
tar -xvzf dart-sass-1.62.0-macos-arm64.tar.gz
dart-sass/sass ../css