如何在config.rb中指定style.css的文件位置?

时间:2015-02-06 18:48:15

标签: css ruby-on-rails sass

我使用Sass和Compass,尽管查看了一些教程,但我无法指定我想要style.css输出的位置。这是我的config.rb

http_path = "/"
css_dir = "css"
sass_dir = "sass" 
images_dir = "images" 
javascripts_dir = "js" 

# You can select your preferred output style here (can be overridden via the command line):
# output_style = :expanded or :nested or :compact or :compressed

output_style = :expanded # After dev :compressed
relative_assets = true
preferred_syntax = :scss

style.css放在根目录而不是css路径中。

我的文件结构是:

Root folder
 - css
 - images
 - js
 - sass
 - config.rb

0 个答案:

没有答案