https://github.com/ajaxray/gulpbusterbundle
Symfony Bundle to integrate gulp-buster gulp plugin. It's a cache busting utility for gulp based asset management.
https://github.com/ajaxray/gulpbusterbundle
Last synced: about 1 month ago
JSON representation
Symfony Bundle to integrate gulp-buster gulp plugin. It's a cache busting utility for gulp based asset management.
- Host: GitHub
- URL: https://github.com/ajaxray/gulpbusterbundle
- Owner: ajaxray
- License: mit
- Created: 2016-02-13T18:59:42.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-14T11:01:45.000Z (over 9 years ago)
- Last Synced: 2025-03-24T18:03:09.569Z (2 months ago)
- Language: PHP
- Homepage:
- Size: 26.4 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
GulpBusterBundle
==========================[](https://travis-ci.org/ajaxray/GulpBusterBundle)
[](https://coveralls.io/github/ajaxray/GulpBusterBundle?branch=master)
[](https://packagist.org/packages/ajaxray/gulp-buster-bundle)
[](https://packagist.org/packages/ajaxray/gulp-buster-bundle)
[](https://packagist.org/packages/ajaxray/gulp-buster-bundle)
[](https://insight.sensiolabs.com/projects/e01bebbb-6aa4-4188-910d-7f51c2503d1e)When using **gulp** to manage assets of a Symfony application,
this Bundle will help in cache busting with help of
[gulp-buster](https://www.npmjs.com/package/gulp-buster) package.## Installation
Install the latest version with
```
$ composer require ajaxray/gulp-buster-bundle
```Then enable the bundle in AppKernel -
``` php```
If a hash is found for this file, it will be appended as query string with it's url -
``````
If no hash found for this file -
``````
That's all :)
## Configuration
By default, this bundle assumes the following paths -
- busters.json (or any other name) file : `%kernel.root_dir%/../busters.json`
- web dir: `%kernel.root_dir%/../web`
- gulp dir (the dir of your gulpfile.js): `%kernel.root_dir%/..`If any/all of the above is different for you, you can configure from your `app/config/config.yml`
file using following keys -```yml
gulp_buster:
# if you've configured it to be in web dir
busters_file: "%kernel.root_dir%/../web/busters.json"
web_dir: "%kernel.root_dir%/relative/path/to/web/dir"
gulp_dir: "%kernel.root_dir%/relative/path/to/dir"
```