Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bezoerb/filerevbundle

Provides a configurable filerev strategy for your symfony2 project
https://github.com/bezoerb/filerevbundle

Last synced: 14 days ago
JSON representation

Provides a configurable filerev strategy for your symfony2 project

Awesome Lists containing this project

README

        

ZoerbFilerevBundle
=====================

This bundle adds support for handling asset cachbusting rewrites based on a JSON configuration.
It enables you to drop assetic and use frontend tooling like `grunt` or `gulp` to build and rev your assets.
The only thing you need is the rev summary provided by [`gulp-rev`](https://github.com/sindresorhus/gulp-rev) or [`grunt-filerev`](https://github.com/yeoman/grunt-filerev) and this bundle will handle everything else.

The summary file should look something like this:
```json
{
"/styles/main.css": "/styles/main.59983df7.css",
"/scripts/main.js": "/scripts/main.c711a749.js"
}
```

## Installation
#### Step 1: Download

```bash
composer require zoerb/filerevbundle
```

#### Step 2: Enable the bundle
Finally, enable the bundle in the kernel:

```php