digisfera/useref — pull request #2 by jonkemp (2014-04-11 19:51:37+00:00)
Title: Fix alternate search paths.

Alternate search paths are currently not working correctly. With multiple blocks, the same search path is used for both. For example, in the following `index.html`

The search path should be `.tmp` only for the second block, but it also affects the first block. You will get an error on `gulp-useref/index.js:54:44`, because `filepath` on line 52 is `/path/to/app/.tmp`, but it's actually looking for `vendor/jquery/dist/jquery.js`.

This patch fixes the problem, adds a passing test and cleans up the code branching that was added before that was not needed.