How do you include a plugin in Compass (through Assetic) for Symfony2?

若如初见. 提交于 2020-01-07 00:57:46

问题


I have installed the compass-rgbapng plugin, but am struggling to to include the plugin for use in Symfony2.

I need to add the require "rgbapng" to the compass config file, but I am unsure how to do this through Symfony2.

Does anyone know how I can do this?


回答1:


I think something like that in app/config/config.yml should helps:

# Assetic Configuration
assetic:
    filters:
        compass:
            plugins:
                - rgbapng



回答2:


Assetic's compass filter looks for a parameter called assetic.filter.compass.plugins:

So you can do this in your app/config/config.yml:

parameters:
    assetic.filter.compass.plugins:
        - rgbapng


来源:https://stackoverflow.com/questions/15160854/how-do-you-include-a-plugin-in-compass-through-assetic-for-symfony2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!