This commit is contained in:
Jovan Gerodetti 2017-12-08 20:29:11 +01:00 committed by Igor Zhukov
parent 0bf1ef0cef
commit dbe2ce954f

View File

@ -190,7 +190,9 @@ function writeServiceWorkerFile (rootDir, handleFetch, callback) {
staticFileGlobs: fileGlobs,
stripPrefix: './' + rootDir + '/',
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)
}