无法将指南针导入symfony2项目

时间:2014-10-12 06:50:40

标签: php symfony sass compass-sass compass

我正在尝试将一些小项目实现到symfony2.5中, 当我将指南针的配置添加到我的配置文件并安装所有需要的软件包(ruby,sass,指南针)时,虽然我正在尝试资产:转储css我得到以下

Error Output:                                                                                                                                                                         
  Error: File to import not found or unreadable: compass.                                                                                                                               
         Load path: /path/to/project/CoreBundle/Resources/public/css                                                                                                   
          on line 6 of /tmp/assetic_sassE4kCr8

如果我删除@import“指南针”;我仍然得到@import“compass / css3”的同样问题;和@import“指南针/实用程序/精灵”;

在我的config.yml中,我获得了如下资产集:

assetic:
    debug:          "%kernel.debug%"
    use_controller: false
    bundles:        [ FundCoreBundle ]
    filters:
        scss:
            bin: "/usr/local/bin/sass"
        compass:
            bin: "/usr/local/bin/compass"

我的css创建如下:

{% stylesheets
        '@FundCoreBundle/Resources/public/css/style.scss'
        filter='compass'
        output='css/*.css'

        %}
    <link rel="stylesheet" href="{{ asset_url }}" />
{% endstylesheets %}

我的scss文件如下

/* Compass utilities*/
// Use one CSS3 mixin instead of multiple vendor prefixes.
// @import "compass/support";
// @import "compass/reset";
@import "compass/css3";
@import "compass";
// See http://compass-style.org/help/tutorials/spriting/
@import "compass/utilities/sprites";
// Helps set up a vertical rhythm.
// @import "compass/typography/vertical_rhythm";

// Sass utilities
@import "helpers/variables";
@import "helpers/mixins";

// Vendors and external stylesheets
// @import "vendors/mmenu/jquery.mmenu";
@import "vendors/bootstrap/bootstrap";

// Base stuff
@import "base/typography";
@import "base/normalize";
@import "base/main";

将指南针+ ccs3 +精灵导入symfony项目的正确方法是什么?

0 个答案:

没有答案