commit 11970ee96587f129c8bd584533df8547f43521e9
parent 549c2bf858cd9c20e760991b04a72db214e258dd
Author: Martin von Gagern <gagern@ma.tum.de>
Date: Tue, 14 Jul 2015 09:51:20 +0200
Update development server for new browserify version
Current browserify no longer accepts an options hash to the bundle method.
Diffstat:
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git 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; });