If you want it to at least "feel" like it's "on-the-fly" (and, most importantly, require no external build steps), check out browserify-middleware <https://www.npmjs.com/package/browserify-middleware> - you just include the middleware and don't think about it anymore, just any JS in a script tag and it handles bundling everything which that file require()s. For a production environment, it has just slightly more start-up time (as it will bundle and minify at startup instead of at build time), but I find it's a good trade-off. Not sure if WebPack also has an on-the-fly middleware kind of thing as well.
On Wednesday, November 18, 2015 at 1:43:09 PM UTC-8, John English wrote: > > OK. I was trying to do it on-the-fly, but I suppose I could look at just > bundling everything up, or maybe have different bundles for different > situations, or... (sigh). > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. To post to this group, send email to nodejs@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/733e0fa5-7499-4bcf-bef4-ef521194d424%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.