If I have a repository in bower_components
containing a folder with 50 JS files, I cannot include them one at a time in my Brocfile with app.import(). How do I include them all in the same call?
If I try to app.import an entire directory of js files, I get this error on compilation:
You must pass a file to 'app.import'. For directories specify them to the constructor under the 'trees' option.
what you are loocking for is the broccoli-static-compiler npm package which manage this perfectly, you can get it there : https://www.npmjs.com/package/broccoli-static-compiler and it's provieded with a nice documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With