-->

How do you include a plugin in Compass (through As

2019-08-30 10:11发布

问题:

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