File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -57,13 +57,15 @@ class DiffingSWManifest extends Plugin {
57
57
var files = Object . keys ( manifest ) . sort ( ) ;
58
58
var bundleHash = this . computeBundleHash ( files , manifest ) ;
59
59
var contents = files
60
- . map ( ( file ) => `# sw.file.hash: ${ this . computeFileHash ( file ) } \n${ path . sep } ${ file } ` )
60
+ . map ( ( file ) => {
61
+ return `# sw.file.hash: ${ this . computeFileHash ( file ) } \n`
62
+ + `${ path . sep } ${ path . relative ( this . inputPaths [ 0 ] , file ) } ` ;
63
+ } )
61
64
. join ( '\n' ) ;
62
- return `CACHE MANIFEST
63
- # sw.bundle: ng-cli
64
- # sw.version: ${ bundleHash }
65
- ${ contents }
66
- ` ;
65
+ return 'CACHE MANIFEST\n'
66
+ + '# sw.bundle: ng-cli\n'
67
+ + `# sw.version: ${ bundleHash } \n`
68
+ + `${ contents } \n` ;
67
69
}
68
70
69
71
// Read the manifest from the cache and split it out into a dict of files to hashes.
You can’t perform that action at this time.
0 commit comments