Skip to content

Commit

Permalink
continue if can't make output dir for webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip committed Mar 26, 2021
1 parent 9fb7912 commit e39ed8c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/xarc-webpack/src/partials/output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ module.exports = () => {

// karma 3.x uses fs.mkdirSync to create output and it fails if the output has multi dirs
// so create the output path here to help it get pass that.
mkdirp.sync(path);
try {
mkdirp.sync(path);
} catch {
//
}

return {
output: {
Expand Down

0 comments on commit e39ed8c

Please sign in to comment.