When running the build command, when there are two files with the same name (in different folders) the usemin:html replace task fails when matching the filename of the minified file to retrieve the version number.
To replicate, init a quickstart project, create an images folder in the app folder. Then place two image files with the same filename in the images folder (one in a subfolder).
Use both of the images somewhere in the index.html so the filenames will get re-written by the usemin task.
// somewhere inside index.html
Run the build command, and you'll notice that the usemin replace task uses the version identifier of the first file it processed.
Excerpt from build log-
usemin:html - index.html
was <img src="images/test.jpg"
now <img src="images/156424e4.test.jpg"
was <img src="images/subfolder/test.jpg"
now <img src="images/subfolder/156424e4.test.jpg"
After some investigation (dropping console.logs into the usemin replace task), it seems the regular expression is catching the first instance of the filename and using that, discounting the path entirely.
@sleeper Need your help here!
I'll have a look at it tonight or tomorrow morning first thing.
Fix issue #560 and #565
Treat the case of empty lines in blocks (#560)
as well as the filename collision (#565)
Fixed in the above PR.
@sleeper Awesome, thanks!