Commit 4a8b2a7e authored by 鍛ㄦ眽鎴's avatar 鍛ㄦ眽鎴 Committed by Ren茅e Kooi
Browse files

馃悰 Unify service-worker env url format (#483)

* use utils.find()

* unify url format
parent f95a4c97
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment