How do you include a plugin in Compass (through As

2019-08-30 09:47发布

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?

2条回答
聊天终结者
2楼-- · 2019-08-30 10:23

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
查看更多
做自己的国王
3楼-- · 2019-08-30 10:27

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

# Assetic Configuration
assetic:
    filters:
        compass:
            plugins:
                - rgbapng
查看更多
登录 后发表回答