Can anyone tell me how to compile sass to css automatically?
I am using sass --watch stylesheet.scss:stylesheet.css
. When you save your file, .scss
it will automatically update the file .css
.
You may also consider sass --watch stylesheet.scss:stylesheet.css --style expanded --sourcemap=none
to save the file .css
for reading.
I would recommend the Udemy Sass Workflow class .
source to share
You need something to compile it automatically. For example, there are solutions that use node.js to compile automatically for you on your machine. One tool is the Zurb Foundation for Websites.
You can install an app that will automatically compile sass for you.
For more information contact: http://foundation.zurb.com/sites/download.html/
source to share
Try Grunt or Gulp with Sass: great tutorial: https://www.taniarascia.com/getting-started-with-grunt-and-sass/
source to share