Git Product home page Git Product logo

gulp-rev-versions-bundle's People

Contributors

azzra avatar derekroth avatar irozgar avatar quentin-st avatar stof avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gulp-rev-versions-bundle's Issues

ServiceNotFoundException

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

GulpRevVersionStrategy->manifestFilename isn't used

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")

Allow to version named packages

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.