Can anyone tell me how to compile sass to css automatically?
I had to rewrite this every time I want to watch the live preview.
sass stylesheet.scss stylesheet.css
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 .
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/
Try Grunt or Gulp with Sass: great tutorial: https://www.taniarascia.com/getting-started-with-grunt-and-sass/