是否可以使用convert-sass转换整个文件夹? (SSS到SASS) [英] Is it possible to convert whole folder with convert-sass? (scss to sass)

查看:89
本文介绍了是否可以使用convert-sass转换整个文件夹? (SSS到SASS)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆