Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

Commit

Permalink
automatically create required dir for file output
Browse files Browse the repository at this point in the history
  • Loading branch information
Alif Rachmawadi committed Aug 8, 2019
1 parent 3dd3f44 commit 35038c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/internal/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ async function buildOutputOptions(options) {

if (!isHtml(options.output)) {
await mkdirpAsync(path.resolve(options.output));
} else {
await mkdirpAsync(path.dirname(options.output));
}
}

Expand Down

0 comments on commit 35038c9

Please sign in to comment.