Wiredep: Bower resource is not added to source code

With wiredep you can wire Bower dependencies to your source code.
But in some cases its not working. A problem could be a incorrect bower.json when the main resource is not targeted.

Incorrect bower.json in e.g. verge.js dependency without a main reference:

Correct bower.json in jquery dependency with a main reference:

The solution is to override the bower.json file in the dependency, by adding a override reference in the project bower.json and add the desired dependency. Its often necessary when the dependency package has more versions.

 

 

Schreib einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.

%d Bloggern gefällt das: