Fix base-path with service-worker-index.html - fixes #579

This commit is contained in:
Seb35
2019-03-25 20:33:43 +01:00
parent 7be7e1eb9f
commit 1e9cd84854

View File

@@ -44,7 +44,7 @@ export function create_serviceworker_manifest({ manifest_data, output, client_fi
client_files: string[];
static_files: string;
}) {
let files: string[] = ['/service-worker-index.html'];
let files: string[] = ['service-worker-index.html'];
if (fs.existsSync(static_files)) {
files = files.concat(walk(static_files));