aboutsummaryrefslogtreecommitdiffstats
path: root/library/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'library/server.js')
-rw-r--r--library/server.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/library/server.js b/library/server.js
index 797ad8a77..67c89f11b 100644
--- a/library/server.js
+++ b/library/server.js
@@ -3,9 +3,11 @@ const browserify = require('browserify')
const watchify = require('watchify')
const babelify = require('babelify')
-const zeroBundle = createBundle('./index.js')
-const controllerBundle = createBundle('./controller.js')
-const popupBundle = createBundle('./popup.js')
+const zeroBundle = createBundle('./src/mascara.js')
+const controllerBundle = createBundle('./src/dapp-connection.js')
+const popupBundle = createBundle('./src/popup.js')
+const swBuild = createBundle('./src/background.js')
+
const appBundle = createBundle('./example/index.js')
//
@@ -24,6 +26,11 @@ iframeServer.use('/popup', express.static('../dist/chrome'))
iframeServer.get('/controller.js', function(req, res){
res.send(controllerBundle.latest)
})
+iframeServer.get('/popup/sw-build.js', function(req, res){
+ console.log('/sw-build.js')
+ res.setHeader('Content-Type', 'application/javascript')
+ res.send(swBuild.latest)
+})
// serve background controller
iframeServer.use(express.static('./server'))