Skip to content

Commit eb93822

Browse files
authored
Update vite.config.ts
Added HMR server config to `vite.config`
1 parent 407264f commit eb93822

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
import { defineConfig } from "laravel-vite";
22
import vue from "@vitejs/plugin-vue";
3-
import tailwind from "tailwindcss";
4-
export default defineConfig()
5-
.withPlugin(vue);
3+
export default defineConfig({
4+
server: {
5+
hmr: {
6+
host: 'localhost',
7+
protocol: 'ws'
8+
}
9+
}
10+
})
11+
.withPlugin(vue);

0 commit comments

Comments
 (0)