We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc578db commit 25aeba7Copy full SHA for 25aeba7
lib/broccoli/service-worker-manifest.js
@@ -57,13 +57,15 @@ class DiffingSWManifest extends Plugin {
57
var files = Object.keys(manifest).sort();
58
var bundleHash = this.computeBundleHash(files, manifest);
59
var contents = files
60
- .map((file) => `# sw.file.hash: ${this.computeFileHash(file)}\n${path.sep}${file}`)
+ .map((file) => {
61
+ return `# sw.file.hash: ${this.computeFileHash(file)}\n`
62
+ + `${path.sep}${path.relative(this.inputPaths[0], file)}`;
63
+ })
64
.join('\n');
- return `CACHE MANIFEST
-# sw.bundle: ng-cli
-# sw.version: ${bundleHash}
65
-${contents}
66
-`;
+ return 'CACHE MANIFEST\n'
+ + '# sw.bundle: ng-cli\n'
67
+ + `# sw.version: ${bundleHash}\n`
68
+ + `${contents}\n`;
69
}
70
71
// Read the manifest from the cache and split it out into a dict of files to hashes.
0 commit comments