Skip to content

Commit

Permalink
Merge pull request #35 from gr2m/master
Browse files Browse the repository at this point in the history
swIncludeFiles: join with ; when concatinating files
  • Loading branch information
jkleinsc authored Sep 29, 2016
2 parents 82198cd + 5b2e63a commit f90fd08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ BroccoliServiceWorker.prototype.write = function(readTree, destDir) {
});
}
if (swIncludeFiles && swIncludeFiles.length) {
swIncludeFiles.forEach(function(file) {
lines.push(fs.readFileSync(file));
});
lines = lines.concat(swIncludeFiles.map(function(file) {
return fs.readFileSync(file)
}).join(';\n'));
}
if (swIncludeDir) {
getFilesRecursively(swIncludeDir, [ "**/*" ]).forEach(function (file) {
Expand Down

0 comments on commit f90fd08

Please sign in to comment.