Update service worker script

This commit is contained in:
Paulus Schoutsen 2016-07-13 19:10:45 -07:00
parent 757faf9f09
commit 7be7cf463c

View File

@ -41,7 +41,7 @@ var dynamicUrlToDependencies = {};
Object.keys(appPaths).forEach(ap => {
dynamicUrlToDependencies[ap] = [
rootDir + '/frontend.html', rootDir + '/core.js',
] + appPaths[ap].map(val => rootDir + val);
].concat(appPaths[ap].map(val => rootDir + val));
});
// Create fingerprinted versions of our dependencies.
@ -67,4 +67,4 @@ swPrecache.write(path.join('build', 'service_worker.js'), {
],
stripPrefix: '..',
replacePrefix: 'static',
});
}).catch(err => console.error(err));