nodeca/mincer — pull request #134 by rosswilson (2014-03-12 17:59:00+00:00)
Title: Error when 'main' inside bower.json is an array

When the 'main' key of a bower.json file is parsed by mincer I have been getting a file not found error. Mincer appears to be comparing the file extension of the bower.json file (always .json) against each file listed in the 'main' array. Surely we should be comparing the extension of the logicalPath?

Therefore if we have bower.json file that looks like this:

````
"main": [
"./dist/css/bootstrap.css",
"./dist/js/bootstrap.js",
"./dist/fonts/glyphicons-halflings-regular.eot",
"./dist/fonts/glyphicons-halflings-regular.svg",
"./dist/fonts/glyphicons-halflings-regular.ttf",
"./dist/fonts/glyphicons-halflings-regular.woff"
]
````

And I have the following in my main JS file:

````
//= require bootstrap.js
````

We should compare the extension of the bootstrap.js requested file with each of the 'main' files, where we will match on ./dist/js/bootstrap.js