Multiple Conversion SCCS > SASS

Asked

Viewed 72 times

0

Hello,

Previously, in a project of mine, I did more than two hundred files. scss, and recently adapted to the use of .sass. I wonder if it is possible to convert all these files at once, instead of going one by one and doing:

$ sass-convert estilo-banner-topo.scss:estilo-banner-topo.sass

It is possible?

Thank you!

1 answer

1


Yes it is possible, sass-convert accepts a recursive argument.

If you run the command $ sass-convert --help he will give you a list of available options, one of them is -R, --recursive which converts all files from a directory, requires the use of the --from and --to.

So your command would look like something like this:

$ sass-convert -R sass_dir --from scss --to sass
  • 1

    Perfect Vinicius, thank you very much, solved my problem!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.