eugeneware / debowerify

A browserify transform to enable the easy use of bower components in browserify client javascript projects. This can be used in conjunction with deamdify to require AMD components from bower as well.
491 stars 51 forks source link

Only first file of "main" array is included #39

Closed ghost closed 9 years ago

ghost commented 10 years ago

We are trying to use angular-strap in our project using debowerify. It has template files defined in separate file "dist/angular-strap.tpl.min.js", defined in main section of the bower.json (https://github.com/mgcrea/angular-strap/blob/master/bower.json) but only first file "dist/angular-strap.min.js" gets included.

Is this a correct behavior? If it is what would be the correct way to get template file included in our app?

dariusclay commented 10 years ago

I was just browsing around to find the same exact answer.

dariusclay commented 10 years ago

I guess for now we should just require both explicitly?

require('../bower_components/angular-strap/dist/angular-strap.js');
require('../bower_components/angular-strap/dist/angular-strap.tpl.js');