Skip to content

Commit

Permalink
Remove bundle for static builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnblk committed May 26, 2018
1 parent ffdc4a4 commit 9209c94
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@ module.exports = async (opts) => {
return
}
remove(opts.tempdir)
if (opts.static) {
const bundle = path.join(opts.outDir, 'bundle.js')
remove(bundle)
}
resolve(stats)
})
})
Expand Down

0 comments on commit 9209c94

Please sign in to comment.