Wrapup Middleware for connect.
Express middleware for wrapup.
var wrapup = ;// will require('foo.js')app;// custom require()app;// with some wrapup optionsapp;// instead of one output option (a single file), the dest option can be used// for multiple files.app;
You don't want to use this in production. Instead you should build the files and serve it as static files.
With this example in a dev environment it will automatically create the static file. In production it will skip the middleware and directly serve the static file.