vendredi 29 mai 2015

broccoli Brocfile import a function

I have the Brocfile importing other assets but I'd like it to import an array of files from a directory. I tried this:

var theComponents = function(){ return fs.readdirSync(__dirname + '/addon/components')}()
console.log(theComponents)
app.import(theComponents)

But it's not converting as I'd like it to. I understand that the vendor.js is usually static files, but I'd like to compile the array as if it was a static file of an array. How can I do that?




Aucun commentaire:

Enregistrer un commentaire