parent
0bf1ef0cef
commit
dbe2ce954f
@ -190,7 +190,9 @@ function writeServiceWorkerFile (rootDir, handleFetch, callback) {
|
|||||||
staticFileGlobs: fileGlobs,
|
staticFileGlobs: fileGlobs,
|
||||||
stripPrefix: './' + rootDir + '/',
|
stripPrefix: './' + rootDir + '/',
|
||||||
importScripts: ['js/lib/push_worker.js'],
|
importScripts: ['js/lib/push_worker.js'],
|
||||||
verbose: true
|
verbose: true,
|
||||||
|
maximumFileSizeToCacheInBytes: 3004152, // about 3MB, default is "2097152" 2MB,
|
||||||
|
navigateFallback: "index.html",
|
||||||
}
|
}
|
||||||
swPrecache.write(path.join(rootDir, 'service_worker.js'), config, callback)
|
swPrecache.write(path.join(rootDir, 'service_worker.js'), config, callback)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user