Unable to load Sass / Compass after installing RVM, to use with Assetic in Symfony2

筅森魡賤 提交于 2019-12-02 03:15:57

I guess you need a wrapper:

rvm wrapper ruby-1.9.3-p194@myapp php sass compass

this will generate wrappers which will call proper ruby(rvm) environment, use them like:

sass:
    bin: /usr/local/rvm/bin/php_sass
    #apply_to: "\.scss$"
compass:
    bin: /usr/local/rvm/bin/php_compass
    apply_to: "\.scss$"

Solution

Just use lessphp. It can be installed with Composer, and then in config.yml:

    lessphp:
         php: %kernel.root_dir%/../vendor/leafo/lessphp/lessc.inc.php
         apply_to: "\.less"
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!