Skip to content

Instantly share code, notes, and snippets.

@tommedema
Created August 25, 2011 21:08
Show Gist options
  • Save tommedema/1171963 to your computer and use it in GitHub Desktop.
Save tommedema/1171963 to your computer and use it in GitHub Desktop.
var mediator = require('mediator');
/* setup browserify as soon as http server is created */
mediator.once('server.created', function(server) {
server.use(require('browserify')({
require: __dirname + '/../../client/js/bootstrap.js'
, entry: [
__dirname + '/../../client/js/lib/eventemitter2.js'
]
}));
mediator.emit('browserify.ready');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment