Browse Source

Maintenance: Mobile - Turn off HMR in Histoire for build command.

Dusan Vuckovic 2 years ago
parent
commit
87ba9e5bbf
1 changed files with 4 additions and 0 deletions
  1. 4 0
      histoire.config.ts

+ 4 - 0
histoire.config.ts

@@ -10,6 +10,10 @@ export default defineConfig({
   vite: {
   vite: {
     server: {
     server: {
       port: 3074,
       port: 3074,
+      ...(process.env.HISTOIRE_BUILD && {
+        hmr: false,
+        watch: { ignored: ['**/*'] },
+      }),
     },
     },
     logLevel: process.env.HISTOIRE_BUILD ? 'error' : 'info',
     logLevel: process.env.HISTOIRE_BUILD ? 'error' : 'info',
   },
   },