Jovan Gerodetti 7 years ago committed by Igor Zhukov
parent
commit
dbe2ce954f
  1. 4
      gulpfile.js

4
gulpfile.js

@ -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…
Cancel
Save