diff --git a/lib/internal/bundle.js b/lib/internal/bundle.js index cedb518d..bed4fe03 100644 --- a/lib/internal/bundle.js +++ b/lib/internal/bundle.js @@ -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)); } }