Skip to content

Commit

Permalink
Merge pull request #53 from Turbo87/test-index
Browse files Browse the repository at this point in the history
Fix broken `test/index.html` mutation
  • Loading branch information
RuslanZavacky committed Oct 23, 2019
2 parents e0c38a0 + 0c4986b commit f924f00
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ module.exports = {
}

replacePlaceholder(path.join(build.directory, 'index.html'), assetMap);
replacePlaceholder(path.join(build.directory, 'tests/index.html'), assetMap);

let testIndexPath = path.join(build.directory, 'tests/index.html');
if (fs.existsSync(testIndexPath)) {
replacePlaceholder(testIndexPath, assetMap);
}
}
};

0 comments on commit f924f00

Please sign in to comment.