Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 1 KB

assetic_filters.md

File metadata and controls

40 lines (32 loc) · 1 KB

SpBowerBundle Assetic Filters

SpBowerBundle offers the possibility to add assetic filters to all (or some) of your bower packages.

Adding assetic filters to all bower packages

sp_bower:
    assetic:
        enabled: true
        filters:
            css:
                - cssrewrite
            js:
                - ?uglifyjs

This configuration will add the cssrewrite filter to all css files and the uglifyjs filter to all js files from the installed bower packages.

Adding assetic filters to specific bower packages

sp_bower:
    assetic:
        enabled: true
        filters:
            packages:
                myPackage:
                    css:
                        - cssrewrite
                    js:
                        - ?uglifyjs

This configuration will add the cssrewrite and the uglifyjs filter only to the package myPackage.

Note:

Package filters and global filters will be merged together.