Closed toranb closed 10 years ago
Hi @toranb, you should be able to use broccoli.MergedTree
to join two trees together and then pass that to concat
to produce one file.
Eg something like:
var allJS = new broccoli.MergedTree([app, vendor]);
var merged = concat(allJS, {
inputFiles: ["**/*.js"],
outputFile: "all.js"
});
hth
Excellent! thanks for the quick reply!
I'm new to broccoli (thanks for writing this much needed module btw) !
Here is my question. I have a templates tree that is my compiled handlebars templates. I then have a vendor tree that is all my stuff concatted (jquery/ember/etc)
How can I use this concat module to put them both together, such that I output a single JS file ?
Here is that I have so far (note -its returning several files today -not a single JS file)