Skip to content

Commit

Permalink
clean web.distProd on build (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
purplecabbage committed Dec 1, 2023
1 parent af171d4 commit 1f35c49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/commands/app/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ class Build extends BaseCommand {
shouldOptimize: flags['web-optimize'],
logLevel: flags.verbose ? 'verbose' : 'warn'
}
// empty the dist folder to prevent an S3 explosion
fs.emptyDirSync(config.web.distProd)
const bundler = await bundle(entries, config.web.distProd, bundleOptions, onProgress)
await bundler.run()
spinner.succeed(chalk.green(`Building web assets for '${name}'`))
Expand Down

0 comments on commit 1f35c49

Please sign in to comment.