From 42cee8bb8448409173850b078d0dcd7f1c3e51d0 Mon Sep 17 00:00:00 2001 From: maxim Date: Fri, 27 Sep 2024 23:02:55 +0300 Subject: [PATCH] fix establish `web-socket` connection https://github.com/guocaoyi/create-chrome-ext/issues/74 --- vite.config.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 9060c16..f6a0dc7 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -7,6 +7,13 @@ import manifest from './src/manifest' // https://vitejs.dev/config/ export default defineConfig(({ mode }) => { return { + server: { + port: 5173, + strictPort: true, + hmr: { + port: 5173, + }, + }, build: { emptyOutDir: true, outDir: 'build',