Skip to content

Commit

Permalink
exit process after build
Browse files Browse the repository at this point in the history
  • Loading branch information
SamDelaney committed Nov 19, 2024
1 parent 31f17e4 commit d696faa
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,17 @@ module.exports = {
new webpack.ProvidePlugin({
process: 'process',
Buffer: ['buffer', 'Buffer'],
})
}),
{
apply: (compiler) => {
compiler.hooks.done.tap('DonePlugin', (stats) => {
console.log('Compile is done !');
setTimeout(() => {
process.exit(0);
});
});
}
}
);

return webpackConfig;
Expand Down

0 comments on commit d696faa

Please sign in to comment.