Multiple conversion SCCS SASS

0

Hello,

Previously, in a project of mine, I made more than two hundred .scss files, and recently I adapted to using .sass. I would like to know 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

Is it possible?

Thank you!

    
asked by anonymous 20.10.2016 / 19:56

1 answer

1

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

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

So, your command would look something like this:

$ sass-convert -R sass_dir --from scss --to sass
    
21.10.2016 / 15:28