Open kettanaito opened 4 weeks ago
This needs additional testing after #14, which moves the Vite preview server spawning to the beginning of the build (so it spawns as the build is in progress).
This happened to me once when running build while the serve was also running. Perhaps this error is an indicator that Vite preview conflicts with Vite build.
That shouldn't be the case anymore after #14, since those changes move vite preview to be in parallel with the build, but run it only when the build is complete.
This happens intermittently during the build sometimes:
When looking at the preview, sometimes Vite spawns but the app is a blank page that has to be reloaded. Not sure if this is caused by the plugin, but it needs to make sure that if the browser opens such page, it reloads before proceeding with taking the screenshot.