问题编译sass文件

时间:2013-01-01 12:25:19

标签: ruby extjs themes sass

我正在使用senhca touch进行开发。我知道sass用于自定义sencha touch中的主题。我安装了所需的材料,但是当我编译scss文件时,它会给出错误:

You must compile individual stylesheets from the project directory.

我很困惑。谁能帮我?我尝试通过提供完整路径进行编译,但它仍然无法正常工作。 Config = .rb如下..

 # Get the directory that this configuration file exists in
 dir = File.dirname(__FILE__)
 # Load the sencha-touch framework automatically.
 load File.join(dir, '..', 'themes')
 # Compass configurations
 sass_path    = dir
 css_path     = File.join(dir, "..", "css")
 environment  = :production
 output_style = :compressed

1 个答案:

答案 0 :(得分:1)

config.rb中的

css_dirsass_dir等的文件路径需要相对于config.rb所在的文件夹。看看你是否有这个问题