boltconcepts/bdev-assetic-bundle

此包已被废弃,不再维护。作者建议使用alexandresalome/assetic-extra-bundle包代替。

通过一些调整和技巧扩展了Symfony2 AsseticBundle。

安装: 312

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

类型:symfony-bundle

dev-master 2013-03-08 19:00 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:24:04 UTC


README

此包通过一些调整和技巧扩展了Symfony2 AsseticBundle

Build Status

LessPHP

LessphpFilter添加了load_paths配置选项。

#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

此公式加载器添加了将包含字体文件的目录复制到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 }

FontDirectoryFormulaLoader是一个技巧,但它可以使管理像Font Awesome这样的东西变得简单。