diff --git a/examples/exchange-files-in-browser/package.json b/examples/exchange-files-in-browser/package.json index e5ba1b8ee2..84ea13b2a4 100644 --- a/examples/exchange-files-in-browser/package.json +++ b/examples/exchange-files-in-browser/package.json @@ -2,10 +2,16 @@ "name": "exchange-files-browser", "version": "0.0.0", "scripts": { - "start": "http-server -c-1 -p 12345 public" + "bundle": "browserify public/js/app.js > public/js/bundle.js", + "serve": "http-server -c-1 -p 12345 public", + "start": "npm run bundle && npm run serve" }, "license": "MIT", "devDependencies": { + "browserify": "^14.4.0", "http-server": "^0.10.0" + }, + "dependencies": { + "stream-buffers": "^3.0.1" } } diff --git a/examples/exchange-files-in-browser/public/index.html b/examples/exchange-files-in-browser/public/index.html index d63bf2d53c..7b4da10591 100644 --- a/examples/exchange-files-in-browser/public/index.html +++ b/examples/exchange-files-in-browser/public/index.html @@ -63,6 +63,7 @@