diff --git a/server.js b/server.js index bf66e2414..b57e7f90c 100644 --- a/server.js +++ b/server.js @@ -11,15 +11,12 @@ app.use(express.logger()); var serveBrowserified = function(file, standaloneName) { return function(req, res, next) { - var b = browserify(); - b.add(file); - var options = {}; if (standaloneName) { options.standalone = standaloneName; } - - var stream = b.bundle(options); + var b = browserify([file], options); + var stream = b.bundle(); var body = ""; stream.on("data", function(s) { body += s; });