boltconcepts / bdev-assetic-bundle
Extends the Symfony2 AsseticBundle with some tweaks and hacks.
Installs: 312
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.2
- symfony/assetic-bundle: >=2.0,<2.3-dev
This package is not auto-updated.
Last update: 2022-02-01 12:24:04 UTC
README
This bundle extends the Symfony2 AsseticBundle with some tweaks and hacks.
LessPHP
Add's a load_paths
configuration option to the LessphpFilter
.
#app/config/config.yml assetic: filters: lessphp: ..... load_paths: [ "%kernel.root_dir%/../vendor/fortawesome/", "%kernel.root_dir%/../vendor/twitter/", "%kernel.root_dir%/../vendor/jschr/" ]
FontDirectoryFormulaLoader
This formula loader add's the hack/ability to copy a directory with font files to font/
.
assetic.font_awesome.fonts: class: %assetic.font_directory_resource.class% arguments: - "my/dir/" # Change this to the directory with your font files tags: - { name: assetic.formula_resource, loader: font_directory_loader }
The FontDirectoryFormulaLoader is a hack but it can make managing things like Font Awesome easy