问题
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