symfony-bundle assetversionbundle
This bundle is used by our team to versionnize assets
alpixel/assetversionbundle
This bundle is used by our team to versionnize assets
- Tuesday, June 13, 2017
- by gouaille
- Repository
- 2 Watchers
- 0 Stars
- 3,886 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 3 Versions
- 1 % Grown
AlpixelAssetVersionBundle
, (*1)
Since Symfony 3.3, you should use http://symfony.com/blog/new-in-symfony-3-3-manifest-based-asset-versioning, (*2)
Installation
composer require 'alpixel/assetversionbundle'
<?php
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new Alpixel\Bundle\AssetVersionBundle\AlpixelAssetVersionBundle(),
);
// ...
}
// ...
}
Configuration
Use gulp and gulp-rev or an other service to generate your assets revised files then call your asset in your template file using our twig extension :, (*3)
<link rel="stylesheet" type="text/css" media="screen" href="{{ asset('css/vendor.min.css'|asset_version) }}" />
dev-master
9999999-dev
https://www.alpixel.fr
This bundle is used by our team to versionnize assets
Sources
Download
MIT
The Requires
by
ALPIXEL
symfony2
bundle
symfony
alpixel
assets management
v0.1.1
0.1.1.0
https://www.alpixel.fr
This bundle is used by our team to versionnize assets
Sources
Download
MIT
The Requires
by
ALPIXEL
symfony2
bundle
symfony
alpixel
assets management