Make sure you have installed Node.js.
Install SASS by running the command npm i -g sass
in your console.
If you encounter an error and you are using macOS, run this command as the super user with sudo
.
To have a live preview of the project, use VS Code with the recommended extension "Live Server".
Start a SASS file watcher in your console inside this directory by sass --watch --no-source-map style.sass:public/style.css
.
You can get futher information by running sass -h
.
To compile the SASS code into CSS code, run the following command inside this directory:
sass --style=compressed --no-source-map --stop-on-error style.sass:public/style.css
The directory /public
is now ready to be deloyed.