Skip to content

Instantly share code, notes, and snippets.

@minuz
Created December 10, 2019 00:39
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minuz/340d0f0559bad87e4b9f6c7522016ef5 to your computer and use it in GitHub Desktop.
Save minuz/340d0f0559bad87e4b9f6c7522016ef5 to your computer and use it in GitHub Desktop.
How to convert sass to scss
sass-convert -R ./ -F sass -T scss && find . -type f -name '*.sass' -delete
@minuz
Copy link
Author

minuz commented Dec 10, 2019

This is a simple command to recursively convert the sass files to scss using sass-convert.

Usage

  • npm i -g sass-convert or yarn add global sass-convert
  • Navigate to the folder with the source files
  • run sass-convert -R ./ -F sass -T scss && find . -type f -name '*.sass' -delete

If this command doesn't delete the sass files (doesn't work on windows)

  • Install rimraf as npm i -g rimraf or yarn add global rimraf
  • rimraf **/*.sass

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