mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +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 => {
|
||||
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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user