Compass generated_images_dir将文件放在错误的文件夹中

时间:2014-07-28 21:23:21

标签: html css compass-sass

指南针generated_images_dir有问题。生成的图像不会放在css/img目录中,而是放在css中。目标是img-sb11bbe84f2.png内有css/img

我怎样才能让它发挥作用?

我使用ruby 2.1.2,指南针0.12.7和Ubuntu 14.04以防相关

config.rb:

http_path = "/"
css_dir = "css"
sass_dir = "sass"
images_dir = "img"
generated_images_dir = "css/img"
javascripts_dir = "js"

指南针观看输出:

>>> Change detected at 23:12:08 to: print.scss
    create css/print.css 
    create css/ie.css 
    create css/img-sb11bbe84f2.png
    create css/screen.css 
>>> Compass is polling for changes. Press Ctrl-C to Stop.

输出目录是:

css
├── ie.css
├── img
├── img-sb11bbe84f2.png
├── print.css
└── screen.css

1 个答案:

答案 0 :(得分:0)

尝试使用:

generated_images_dir = "."