Skip to content

Commit

Permalink
Add vite settings for hot reload
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-nikitin-2022 committed Jun 4, 2024
1 parent 3e426c1 commit 644eb92
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v2.0.8

- Добавили настройки vite для hot-reload @vkontakte/vk-tunnel.

## v2.0.7

- Обновили версию и скрипт запуска утилиты @vkontakte/vk-tunnel.
Expand Down
9 changes: 9 additions & 0 deletions templates/javascript/vkui-bridge-router/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ export default defineConfig({
},
},

server: {
port: 5173,
host: 'localhost',
hmr: {
protocol: 'ws',
host: 'localhost',
},
},

build: {
outDir: 'build',
},
Expand Down
9 changes: 9 additions & 0 deletions templates/javascript/vkui-bridge/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ export default defineConfig({
},
},

server: {
port: 5173,
host: 'localhost',
hmr: {
protocol: 'ws',
host: 'localhost',
},
},

build: {
outDir: 'build',
},
Expand Down
9 changes: 9 additions & 0 deletions templates/typescript/vkui-bridge-router/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ export default defineConfig({
}),
],

server: {
port: 5173,
host: 'localhost',
hmr: {
protocol: 'ws',
host: 'localhost',
},
},

build: {
outDir: 'build',
},
Expand Down
9 changes: 9 additions & 0 deletions templates/typescript/vkui-bridge/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ export default defineConfig({
}),
],

server: {
port: 5173,
host: 'localhost',
hmr: {
protocol: 'ws',
host: 'localhost',
},
},

build: {
outDir: 'build',
},
Expand Down

0 comments on commit 644eb92

Please sign in to comment.