在 Windows 中编译 SASS 7
Compiling SASS in Windows 7
我打算使用 SASS 而不是 CSS 来制作网站。我正在尝试将 SASS 文件编译为 CSS。我应该使用应用程序来这样做吗?或者我应该只使用命令提示符?
如果您有 Ruby,则安装 gem SASS。只需在命令行中输入 gem install sass
。
Once Sass is installed, you can run sass input.scss output.css
from your terminal. You can watch either individual files or entire directories. In addition, you can watch folders or directories with the --watch flag. An example of running Sass while watching an entire directory is the following:
sass --watch app/sass:public/stylesheets
我打算使用 SASS 而不是 CSS 来制作网站。我正在尝试将 SASS 文件编译为 CSS。我应该使用应用程序来这样做吗?或者我应该只使用命令提示符?
如果您有 Ruby,则安装 gem SASS。只需在命令行中输入 gem install sass
。
Once Sass is installed, you can run
sass input.scss output.css
from your terminal. You can watch either individual files or entire directories. In addition, you can watch folders or directories with the --watch flag. An example of running Sass while watching an entire directory is the following:sass --watch app/sass:public/stylesheets