irozgar / gulp-rev-versions-bundle Goto Github PK
View Code? Open in Web Editor NEWA bundle that allows symfony to get the version of assets versioned with gulp-rev
License: MIT License
A bundle that allows symfony to get the version of assets versioned with gulp-rev
License: MIT License
Hi,
I'm running Symfony 3.1. I followed the instructions in the README, but stumble upon the following exception when running server:run
:
[Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]
The service "assets.packages" has a dependency on a non-existent service "irozgar_gulp_rev_versions.asset.gulp_rev_version_strategy".
I tried registering this service in my own services.yml
: server:run
succeeds, but then I get a An exception has been thrown during the rendering of a template ("The file "assets/css/lib.css" does not exist and there is no version file for it") in AppBundle::base.html.twig at line 45.
exception.
services:
irozgar_gulp_rev_versions.asset.gulp_rev_version_strategy:
class: Irozgar\GulpRevVersionsBundle\Asset\GulpRevVersionStrategy
arguments:
- "%kernel.root_dir%"
- "%gulp_rev_manifest_path%"
Note: after a bit of debugging, I found that your bundle handles framework bundle's assets, but not mine
Field $manifestFilename
in GulpRevVersionStrategy class isn't assigned and is only used when the "Manifest file not found" exception is thrown:
An exception has been thrown during the rendering of a template ("Manifest file "" not found in path "your/custom/path/rev-manifest.json". You can generate this file running gulp")
Right now the bundle only work for bundles using the default packages. That's why it doesn't work when using the asset function like this.
<link rel="stylesheet" href="{{ asset('css/main.css', 'mycdn') }}" />
Support for other packages besides the default one should be added.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.