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)