Skip to content

Commit

Permalink
fixed: bug that causes passed in manifestTransforms not to run (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikJoreteg authored and Matt Gaunt committed Aug 3, 2017
1 parent 3039481 commit 8f09d94
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/workbox-build/src/lib/utils/filter-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ module.exports = (fileDetails, options) => {
};
});

const manifestTransforms = [];
let manifestTransforms = [];

if (options.modifyUrlPrefix) {
manifestTransforms.push(modifyUrlPrefixTranform(options.modifyUrlPrefix));
Expand All @@ -89,7 +89,9 @@ module.exports = (fileDetails, options) => {

if (options.manifestTransforms) {
if (Array.isArray(options.manifestTransforms)) {
manifestTransforms.concat(options.manifestTransforms);
manifestTransforms = manifestTransforms.concat(
options.manifestTransforms
);
} else {
throw new Error(errors['bad-manifest-transforms']);
}
Expand Down

0 comments on commit 8f09d94

Please sign in to comment.