mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 00:36:34 +00:00
Update service worker script
This commit is contained in:
parent
757faf9f09
commit
7be7cf463c
@ -41,7 +41,7 @@ var dynamicUrlToDependencies = {};
|
|||||||
Object.keys(appPaths).forEach(ap => {
|
Object.keys(appPaths).forEach(ap => {
|
||||||
dynamicUrlToDependencies[ap] = [
|
dynamicUrlToDependencies[ap] = [
|
||||||
rootDir + '/frontend.html', rootDir + '/core.js',
|
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.
|
// Create fingerprinted versions of our dependencies.
|
||||||
@ -67,4 +67,4 @@ swPrecache.write(path.join('build', 'service_worker.js'), {
|
|||||||
],
|
],
|
||||||
stripPrefix: '..',
|
stripPrefix: '..',
|
||||||
replacePrefix: 'static',
|
replacePrefix: 'static',
|
||||||
});
|
}).catch(err => console.error(err));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user