freefair/resource-bundle

This Bundle proviedes functionality for bundeling and minifing resources

Installs: 37

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 1

Type:symfony-bundle

pkg:composer/freefair/resource-bundle

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

This package is not auto-updated.

Last update: 2025-10-09 05:08:27 UTC


README

Configuration

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

Usage in TWIG

{{ renderBundle("style") }}