Skip to content

Commit

Permalink
Merge pull request frontendbeast#18 from Pushedskydiver/master
Browse files Browse the repository at this point in the history
πŸ› Fix breaking change from mkdirp module
  • Loading branch information
frontendbeast authored Apr 27, 2020
2 parents 645f53a + 7225dfe commit 5581a86
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,9 @@ var spriteSVG = function(options) {
// Render our template and then save the file
function renderTemplate(file) {
var compiled = mustache.render(file.contents, file.data);
mkdirp(path.dirname(file.dest), function(){
fs.writeFile(file.dest, compiled);

mkdirp(path.dirname(file.dest)).then(() => {
fs.writeFile(file.dest, compiled);
});
}

Expand Down

0 comments on commit 5581a86

Please sign in to comment.