开发者

Changing the output directory of the resulting CSS file in Compass/Webby?

开发者 https://www.devze.com 2022-12-09 14:17 出处:网络
I want my resulting *.css file to land in the output/css directory instead of the stylesheets directory.How would I go about doing this?

I want my resulting *.css file to land in the output/css directory instead of the stylesheets directory. How would I go about doing this?

I've already tried:开发者_运维百科

Compass.configuration do |config|
  config.project_path = File.dirname(__FILE__)
  config.sass_dir = File.join('src','stylesheets')
  config.css_dir = 'css'
  config.output_style = :compact
end

<proj-root>/SiteFile

In my Webby SiteFile configuration, but the resulting css file is still output into the default directory ("stylesheets"). How can I change this?


Try adding the path you wish to use to your config.rb file like this;

css_dir = "output/folder/css/"

A real world example from my own project looks like this:

css_dir = "public/stylesheets/compiled/"


I haven't tried it but this might work:

config.css_dir = File.join('output','css')
0

精彩评论

暂无评论...
验证码 换一张
取 消