mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-17 12:24:55 +00:00
update for 0.22
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { timestamp, assets, shell, routes } from './manifest/service-worker.js';
|
||||
import { timestamp, files, shell, routes } from '../__sapper__/service-worker.js';
|
||||
|
||||
const ASSETS = `cache${timestamp}`;
|
||||
|
||||
// `shell` is an array of all the files generated by webpack,
|
||||
// `assets` is an array of everything in the `assets` directory
|
||||
// `files` is an array of everything in the `static` directory
|
||||
const to_cache = shell.concat(assets);
|
||||
const cached = new Set(to_cache);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user