Skip to content

Commit

Permalink
update dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
cavencj committed May 10, 2024
1 parent 4477625 commit d3d0373
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,14 @@ export const dev = gulp.series(
})
.on('change', async () => {
let now = new Date().getTime()
await regenerate({ iife: true })
shell.echo(
chalk.green(`regenerate lib takes ${new Date().getTime() - now} ms`)
)
try {
await regenerate({ iife: true })
shell.echo(
chalk.green(`regenerate lib takes ${new Date().getTime() - now} ms`)
)
} catch (e) {
shell.error(e)
}
})
return watcher
}
Expand Down

0 comments on commit d3d0373

Please sign in to comment.