Merge pull request #616 from Seb35/fix-swindex-base-path

Fix base-path with service-worker-index.html - fixes #579
This commit is contained in:
Rich Harris
2019-04-27 11:07:36 -04:00
committed by GitHub

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));