指南针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
答案 0 :(得分:0)
尝试使用:
generated_images_dir = "."