更改Compass / Webby中生成的CSS文件的输出目录? [英] Changing the output directory of the resulting CSS file in Compass/Webby?
本文介绍了更改Compass / Webby中生成的CSS文件的输出目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望将生成的* .css文件放置在output / css目录而不是stylesheets目录中。我将如何去做?
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?
我已经尝试过:
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
在我的Webby SiteFile配置中,但生成的CSS文件仍输出到默认目录(样式表)。我该如何更改?
In my Webby SiteFile configuration, but the resulting css file is still output into the default directory ("stylesheets"). How can I change this?
推荐答案
尝试将要使用的路径添加到config.rb文件中;
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/"
这篇关于更改Compass / Webby中生成的CSS文件的输出目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文