我一直在学习如何使用资产过滤器并通过资产集成 compass/foundation5。当我尝试使用assetic:dump时,我得到了一堆错误,尽管我尽了最大的努力,但我还没有找到解决方案。首先,我认为错误的根源在这里。
Output:
error assetic_compassyGuG5K.scss (Line 13 of src/test/CoreBundle/Resources/public/scss/_settings.scss: File to import not found or unreadable: foundation/functions.
Load paths:
/tmp
/home/test/.rvm/gems/ruby-2.1.2/gems/compass-0.12.6/frameworks/blueprint/stylesheets
/home/test/.rvm/gems/ruby-2.1.2/gems/compass-0.12.6/frameworks/compass/stylesheets
/var/www/test.local/public_html/src/test/CoreBundle/Resources/public/scss
我试图做任何我能想到的来清除错误(除了完全移除过滤器,这将解决它)。我什至尝试使用foundation 来加载站点,尽管我摆脱了这个错误,但它被一个错误所取代,指出foundation.xml 无法定位。
我的问题是我是否需要将 config.rb 添加到过滤器以定义位置,还是我在过滤器中遗漏了一些东西?
# Assetic Configuration
assetic:
debug: "%kernel.debug%"
use_controller: true
bundles: [ ]
#java: /usr/bin/java
filters:
cssrewrite: ~
compass:
bin: /home/nathan/.rvm/gems/ruby-2.1.2/bin/compass
apply_to: "/.scss$"
#closure:
# jar: "%kernel.root_dir%/Resources/java/compiler.jar"
#yui_css:
# jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"
parameters:
assetic.ruby.bin: /home/nathan/.rvm/rubies/ruby-2.1.2/bin/ruby