Skip to content

Commit

Permalink
build: catch esbuild errors for web builds
Browse files Browse the repository at this point in the history
  • Loading branch information
owenpearson committed Mar 20, 2024
1 parent 7c00f59 commit 96485a4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,14 @@ module.exports = function (grunt) {
esbuild.build(esbuildConfig.webConfig),
esbuild.build(esbuildConfig.minifiedWebConfig),
esbuild.build(esbuildConfig.modularConfig),
]).then(() => {
console.log('esbuild succeeded');
done(true);
});
])
.then(() => {
console.log('esbuild succeeded');
done(true);
})
.catch((err) => {
done(err);
});
});

grunt.registerTask('test:webserver', 'Launch the Mocha test web server on http://localhost:3000/', [
Expand Down

0 comments on commit 96485a4

Please sign in to comment.