ben-ng / paq

Multithreaded browserify
MIT License
7 stars 1 forks source link

How to handle multiple output bundles? #12

Open ben-ng opened 9 years ago

ben-ng commented 9 years ago

paq entry.js > out.js is simple and expected behavior, but doesn't really work when you need to create multiple output bundles.

@joeybaker any ideas for how the factored bundle api should work?

joeybaker commented 9 years ago

The factor-bundle way:

paq first.js second.js --common [ -o firstOut.js -o secondOut.js ] > commonOut.js

IMHO:

paq first.js second.js -o firstOut.js -o secondOut.js --common commonOut.js

I like this because you're already going to need [named pipes] if you want to really stream the outputs in the browserify way. Disabling piping to stdin altogether feels "cleaner".