freefair/resource-bundle

此Bundle提供资源打包和压缩的功能

安装: 34

依赖关系: 0

建议者: 0

安全: 0

星标: 0

关注者: 4

分支: 0

开放问题: 1

类型:symfony-bundle

v0.2.2 2016-07-24 12:20 UTC

This package is not auto-updated.

Last update: 2024-09-26 00:11:36 UTC


README

配置

resource_bundle:
    asset_dir: "assets"                             # path to directory where assets are located
    bower_dir: "assets/bower"                       # path to directory where to find bower-components
    bundles:
        style:
            minify: false                           # If true bundled files will minified before delivery
            debug: true                             # If true files are not bundled
            name: "TestCssBundle"                   # Just a free text
            type: "text/css"                        # Mime-Type of files containing in this bundle
            files:
                - "bower:angular-material"          # Bower component matching
                - "css/style.css"                   # Simple file matching
                - "css/*.css"                       # Wildcard file matching (** matching sub directories)
                - "file:regex:css/([^/]+).css"      # Regular expression file matching

在TWIG中的使用

{{ renderBundle("style") }}