Skip to content

Instantly share code, notes, and snippets.

@pedrogpimenta
Created April 11, 2014 16:51
Show Gist options
  • Star 45 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save pedrogpimenta/10483756 to your computer and use it in GitHub Desktop.
Save pedrogpimenta/10483756 to your computer and use it in GitHub Desktop.
Convert SASS to SCSS and delete .sass files (applies to all files in current folder)
sass-convert -R ./ -F sass -T scss && rm *.sass
@misterhtmlcss
Copy link

Is this on any command line or do I need a specific file to be installed or what.. This is something I really really wanted to use, but it's too self-explanatory to try without being 100% certain first. Your thoughts and further explanation would be appreciated.

@ShaggyDude
Copy link

Just ran it on a project called bulma. it worked great but didn't delete .sass files in subfolders.

@yass09
Copy link

yass09 commented Jun 30, 2016

Same here, sass files are still here

@Nezteb
Copy link

Nezteb commented Aug 16, 2016

To do recursive delete of .sass files in subfolders:

sass-convert -R ./ -F sass -T scss && find . -type f -name '*.sass' -delete

@dfosco
Copy link

dfosco commented Aug 18, 2016

Thanks @Nezteb 😄

@smilemakc
Copy link

Thanks!

@rtackett
Copy link

@Nezteb code worked like a charm. Save me a lot of time. Thanks

@tanduong
Copy link

@Nezteb I can't find the "like" button ;)

@justgeek
Copy link

justgeek commented Dec 2, 2019

Thanks @Nezteb

@pedrogpimenta
Copy link
Author

Oh god, I just saw all these comments. I just saved that gist for my own use, just to keep track of that command to convert without deleting. Glad to see people pitch in :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment