gulpjhipstergulp-inject

Gulp task 'inject:vendor' does not inject Bower dependencies


After upgrading to the latest version 3.4.1 of JHipster, I noticed that gulp inject does not inject my custom Bower dependencies into index.html. So I tried to delete all the prepackaged script tags and get them injected again.

Surprisingly, it did not work. Nothing gets injected.

I don't see no tickets, no discussions mentioning this problem. Is this just my environment? Can someone verify that this is an issue?

How to reproduce:


Solution

  • I can verify that gulp inject does not inject the bower dependencies, but both gulp inject:dep and gulp inject:vendor worked correctly for me. Not sure why that is.

    I would recommend calling just gulp which will start watching your files and inject any dependencies for you.