Skip to content

Commit 1b27382

Browse files
committed
fix: the manifest paths should not include the root
1 parent cc578db commit 1b27382

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/broccoli/service-worker-manifest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class DiffingSWManifest extends Plugin {
5757
var files = Object.keys(manifest).sort();
5858
var bundleHash = this.computeBundleHash(files, manifest);
5959
var contents = files
60-
.map((file) => `# sw.file.hash: ${this.computeFileHash(file)}\n${path.sep}${file}`)
60+
.map((file) => `# sw.file.hash: ${this.computeFileHash(file)}\n${path.sep}${path.relative(this.inputPaths[0], file)}`)
6161
.join('\n');
6262
return `CACHE MANIFEST
6363
# sw.bundle: ng-cli

0 commit comments

Comments
 (0)