sass
使用CLI时如何配置 Compass ?
基本上我是设置images_dir
属性,这是我一直在使用的命令:
sass
--compass
path/to/input.scss
path/to/output.css
我试过了:
sass
--compass
-c path/to/config.rb
path/to/input.scss
path/to/output.css
输出:
WARNING on line 1 of path/to/config.rb:
This selector doesn't have any properties and will not be rendered.
Syntax error: Invalid CSS after "image_dir ": expected selector, was "= "test""
on line 1 of path/to/config.rb
所以很明显,在使用命令-c
时它的工作方式不同。compass compile
和
sass
--compass
--images-dir path/to/images
path/to/input.scss
path/to/output.css
输出:
OptionParser::InvalidOption: invalid option: --images-dir
同上。
我尝试使用compass compile
但我没有项目目录。
compass compile
--images-dir path/to/images
path/to
path/to/input.scss
输出:
You must compile individual stylesheets from the project directory.
也试过这个:
compass compile
path/to
输出:
Nothing to compile. If you're trying to start a new project, you have left off the directory argument.
config.rb 刚刚包含:
images_dir = "test"