问题描述
我在SCSS格式的文件夹中有一堆文件。我需要将其全部转换为SASS格式,并且我知道sass对于该convert-sass具有特定的命令,但是我不确定是否可以转换整个文件夹(内部有文件夹)?
I have a bunch of files in bunch of folders in SCSS format. I need to convert it all to SASS format, and I know sass has a specific command for that convert-sass, however I am not sure whether it is possible to convert whole folder (with folders inside)?
如果可能的话,如何进行convert-sass,否则也许有编译器能够做到这一点?预先谢谢您:)
If its possible, then how convert-sass, else maybe there is a compiler who is able to do that? Thank you upfront:)
推荐答案
是的, ass-convert
接受递归参数。
如果运行 sass-convert --help
,它将为您提供可用选项列表。其中之一是:
If you run sass-convert --help
, it will give you a list of available options. One of them is:
-R, --recursive Convert all the files in a directory. Requires --from and --to.
因此,您的命令应如下所示:
So, your command should look like this:
sass-convert -R my_sass_dir --from sass --to scss
这篇关于是否可以使用convert-sass转换整个文件夹? (SSS到SASS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!