aboutsummaryrefslogtreecommitdiffstats
path: root/library/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'library/server.js')
-rw-r--r--library/server.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/library/server.js b/library/server.js
index 797ad8a77..b9f59c2a1 100644
--- a/library/server.js
+++ b/library/server.js
@@ -7,6 +7,7 @@ const zeroBundle = createBundle('./index.js')
const controllerBundle = createBundle('./controller.js')
const popupBundle = createBundle('./popup.js')
const appBundle = createBundle('./example/index.js')
+const swBuild = createBundle('./sw-core.js')
//
// Iframe Server
@@ -24,6 +25,11 @@ iframeServer.use('/popup', express.static('../dist/chrome'))
iframeServer.get('/controller.js', function(req, res){
res.send(controllerBundle.latest)
})
+iframeServer.get('/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'))