taptapship / wiredep

Wire Bower dependencies to your source code.
MIT License
1.15k stars 142 forks source link

Problem if html file is outside wwwroot #229

Closed galmok closed 8 years ago

galmok commented 8 years ago

When I use wiredep to inject my libs that are located in wwwroot/lib into my html file (store in project root/Scripts), then resulting injected files all come prefixed with "../wwwroot". I use the wiredep option 'directory' with a path that points to the lib folder.

When processing the html file, the resulting html file is placed in wwwroot.

Is there any option to wiredep that will allow me to have it strip "../wiredep/" from all references inserted into the html file? Or can I rewrite the html file path (just in memory) prior to wiredep receiving it?

eddiemonge commented 8 years ago

ignorePath is what you are looking for https://github.com/taptapship/wiredep#configuration