evolution7 / grunt-usemin-bundle
The GruntUseminBundle provides a Twig extension for using files processed with grunt-usemin when in production.
Installs: 2 519
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 4
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.3
- symfony/symfony: >=2.1.0,<3.0
This package is not auto-updated.
Last update: 2024-11-04 16:17:11 UTC
README
The GruntUseminBundle contains an event listener for the kernel.controller event which prepends prod_path to the Twig template search path when in production.
This results in Twig template files processed with grunt-usemin to be used automatically.
Check out the Symfony Yeoman generator for example usage.
Installation
composer.json
"require": { "evolution7/grunt-usemin-bundle": "0.3.*" },
AppKernel.php:
public function registerBundles() { $bundles = array( // ... new Evolution7\GruntUseminBundle\Evolution7GruntUseminBundle(), // ... );
Default Bundle Configuration
evolution7_grunt_usemin: dev_path: "app/Resources" prod_path: "app/dist/Resources"
License
MIT license Copyright (c) 2013, Evolution 7.