We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 301a8a9 commit 18ccd6bCopy full SHA for 18ccd6b
vite.config.js
@@ -16,9 +16,11 @@ const hydeVitePlugin = () => ({
16
fs.writeFileSync(path.resolve(process.cwd(), 'app/storage/framework/cache/vite.hot'), '');
17
18
// Remove hot file when Vite server closes
19
- process.on('SIGINT', () => {
20
- fs.rmSync(path.resolve(process.cwd(), 'app/storage/framework/cache/vite.hot'));
21
- process.exit();
+ ['SIGINT', 'SIGTERM'].forEach(signal => {
+ process.on(signal, () => {
+ fs.rmSync(path.resolve(process.cwd(), 'app/storage/framework/cache/vite.hot'));
22
+ process.exit();
23
+ });
24
});
25
26
// Render the Vite index page when the root URL is requested
0 commit comments