update tests

This commit is contained in:
Rich Harris
2018-09-30 11:32:58 -04:00
parent 2185f89669
commit 5573258a10
10 changed files with 39 additions and 40 deletions

View File

@@ -1,10 +1,10 @@
import { assets, shell, timestamp, routes } from './manifest/service-worker.js';
import { files, shell, timestamp, routes } from './__sapper__/service-worker.js';
const ASSETS = `cachetimestamp`;
// `shell` is an array of all the files generated by webpack,
// `assets` is an array of everything in the `assets` directory
const to_cache = shell.concat(assets);
const to_cache = shell.concat(files);
const cached = new Set(to_cache);
self.addEventListener('install', event => {