Closed dfreeman closed 7 years ago
@dfreeman thanks for the PR. This npm package assumed the incoming tree only contains JS files and was hoping the caller to filter and call. I am fine with merging this in either ways. I'll merge and release in a few days as I am traveling.
Thanks, no rush! This is definitely possible externally, but given how verbose it is (and that it would require extra processing for the funnel/merge), it seems nice to bake it in here 🙂
(input) => {
return new MergeTrees([
input,
fastbootTransform(new Funnel(input, { include: '**/*.js' }))
], { overwrite: true });
}
@dfreeman Agreed! I'll merge and release.
@dfreeman fastboot-transform@v0.1.2
is released.
👍 Thanks!
If you have a tree with e.g. both CSS and JS in it, currently this would wrap the CSS as well, which would produce invalid output.