How can I set up Gulp to automatically convert my ".scss" code into standard CSS? Currently, I need to run a terminal command each time I want to compile, but I'd like to avoid having to do that repeatedly.
-
You using windows?Deepak Bandi– Deepak Bandi2017-01-04 06:27:03 +00:00Commented Jan 4, 2017 at 6:27
-
1prepros.io This will generate css on save of your scss fileDeepak Bandi– Deepak Bandi2017-01-04 06:27:52 +00:00Commented Jan 4, 2017 at 6:27
-
1For Mac : unmatchedstyle.com/news/setting-up-codekit-for-sass.phpDeepak Bandi– Deepak Bandi2017-01-04 06:28:33 +00:00Commented Jan 4, 2017 at 6:28
-
1Or, if you are using node, then node-sass : github.com/sass/node-sassDeepak Bandi– Deepak Bandi2017-01-04 06:30:26 +00:00Commented Jan 4, 2017 at 6:30
-
1Prepros should be good.Deepak Bandi– Deepak Bandi2017-01-04 06:33:39 +00:00Commented Jan 4, 2017 at 6:33
|
Show 4 more comments
1 Answer
Just use
sass --watch app/sass:public/stylesheets
this where:
app/sass is location of scss files and public/stylesheets location where you want to have css. It will automatically convert scss to css after each save of the sass files.
More details here: http://sass-lang.com/guide