diff --git a/lib/graph-service-worker.js b/lib/graph-service-worker.js index 3df83416..7bd00501 100644 --- a/lib/graph-service-worker.js +++ b/lib/graph-service-worker.js @@ -113,8 +113,10 @@ function fileEnv (state) { ] var style = [`${state.styles.bundle.hash.toString('hex').slice(0, 16)}/bundle.css`] var assets = split(state.assets.list.buffer) - var doc = split(state.documents.list.buffer) - var manifest = ['/manifest.json'] + var doc = split(state.documents.list.buffer).map(function (url) { + return url.slice(1) + }) + var manifest = ['manifest.json'] var files = [].concat(script, style, assets, doc, manifest) files = files.filter(function (file) {