From e0c605733f49c4a5e41e20d7c30cf4f99cabbf46 Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Mon, 13 Nov 2023 11:52:34 +0100 Subject: [PATCH] chore: vite server comments --- packages/histoire/src/node/server.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/histoire/src/node/server.ts b/packages/histoire/src/node/server.ts index 64f46df5..38da3b3b 100644 --- a/packages/histoire/src/node/server.ts +++ b/packages/histoire/src/node/server.ts @@ -33,7 +33,8 @@ export async function createServer (ctx: Context, options: CreateServerOptions = } } - const { server: nodeServer } = await getViteServer(true) // Should be run after the first one to get a fresh vite.config.js + // Should be run sequentially to get a fresh vite.config.js each time + const { server: nodeServer } = await getViteServer(true) // Run before normal vite to prevent breaking HMR in Nuxt const { server, viteConfigFile } = await getViteServer(false) await watchStories(ctx) const { stop: stopMdFileWatcher } = await createMarkdownFilesWatcher(ctx)