Created
August 27, 2016 06:51
-
-
Save kumamotone/59676c50a3f4469ef0bd7a2a20a249dd to your computer and use it in GitHub Desktop.
Convert .scss to .sass
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dir::glob("./*.scss").each { |filename| | |
filename.slice!(".scss") | |
system("sass-convert #{filename}.scss #{filename}.sass") | |
system("rm ./#{filename}.scss") | |
puts ("converted #{filename}.scss to #{filename}.sass") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment