Skip to content

Commit

Permalink
πŸ› Unify service-worker env url format (#483)
Browse files Browse the repository at this point in the history
* use utils.find()

* unify url format
  • Loading branch information
zhouhanseng authored and goto-bus-stop committed May 16, 2018
1 parent f95a4c9 commit 4a8b2a7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/graph-service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4a8b2a7

Please sign in to comment.