Skip to content

Commit

Permalink
change default vite port and add strictport
Browse files Browse the repository at this point in the history
changelog
  • Loading branch information
atterpac committed Apr 25, 2024
1 parent 5d0a58c commit d05f293
Show file tree
Hide file tree
Showing 17 changed files with 60 additions and 3 deletions.
1 change: 1 addition & 0 deletions mkdocs-website/docs/en/changelog.md
Expand Up @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

### Added
- Switches vite to a strict port of `:9245` to avoid vite conflicts by [@atterpac](https://github.com/atterpac) in [#3427](https://github.com/wailsapp/wails/pull/3427)
- [darwin] add Event ApplicationShouldHandleReopen to be able to handle dock icon click by @5aaee9 in [#2991](https://github.com/wailsapp/wails/pull/2991)
- [darwin] add getPrimaryScreen/getScreens to impl by @tmclane in [#2618](https://github.com/wailsapp/wails/pull/2618)
- [darwin] add option for showing the toolbar in fullscreen mode on macOS by [@fbbdev](https://github.com/fbbdev) in [#3282](https://github.com/wailsapp/wails/pull/3282)
Expand Down
4 changes: 2 additions & 2 deletions v3/internal/templates/_common/Taskfile.tmpl.yml
Expand Up @@ -439,9 +439,9 @@ tasks:
- wails3 tool watcher -config ./build/devmode.config.toml
env:
# This is the default vite dev server port
FRONTEND_DEVSERVER_URL: 'http://localhost:5173'
FRONTEND_DEVSERVER_URL: 'http://localhost:9245'

dev:reload:
summary: Reloads the application
cmds:
- task: run
- task: run
4 changes: 4 additions & 0 deletions v3/internal/templates/preact-ts/frontend/vite.config.ts
Expand Up @@ -4,4 +4,8 @@ import preact from '@preact/preset-vite'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [preact()],
server: {
port: 9245,
strictPort: true,
},
})
4 changes: 4 additions & 0 deletions v3/internal/templates/preact/frontend/vite.config.js
Expand Up @@ -4,4 +4,8 @@ import preact from '@preact/preset-vite'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [preact()],
server: {
port: 9245,
strictPort: true,
},
})
4 changes: 4 additions & 0 deletions v3/internal/templates/qwik-ts/frontend/vite.config.js
Expand Up @@ -8,4 +8,8 @@ export default defineConfig({
csr: true,
}),
],
server: {
port: 9245,
strictPort: true,
},
})
4 changes: 4 additions & 0 deletions v3/internal/templates/qwik/frontend/vite.config.js
Expand Up @@ -8,4 +8,8 @@ export default defineConfig({
csr: true,
}),
],
server: {
port: 9245,
strictPort: true,
},
})
4 changes: 4 additions & 0 deletions v3/internal/templates/react-swc-ts/frontend/vite.config.ts
Expand Up @@ -4,4 +4,8 @@ import react from '@vitejs/plugin-react-swc'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
port: 9245,
strictPort: true,
},
})
4 changes: 4 additions & 0 deletions v3/internal/templates/react-swc/frontend/vite.config.js
Expand Up @@ -4,4 +4,8 @@ import react from '@vitejs/plugin-react-swc'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
port: 9245,
strictPort: true,
},
})
4 changes: 4 additions & 0 deletions v3/internal/templates/react-ts/frontend/vite.config.ts
Expand Up @@ -4,4 +4,8 @@ import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
port: 9245,
strictPort: true,
},
})
4 changes: 4 additions & 0 deletions v3/internal/templates/react/frontend/vite.config.js
Expand Up @@ -4,4 +4,8 @@ import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
port: 9245,
strictPort: true,
},
})
4 changes: 4 additions & 0 deletions v3/internal/templates/solid-ts/frontend/vite.config.ts
Expand Up @@ -3,4 +3,8 @@ import solid from 'vite-plugin-solid'

export default defineConfig({
plugins: [solid()],
server: {
port: 9245,
strictPort: true,
},
})
4 changes: 4 additions & 0 deletions v3/internal/templates/solid/frontend/vite.config.js
Expand Up @@ -3,4 +3,8 @@ import solid from 'vite-plugin-solid'

export default defineConfig({
plugins: [solid()],
server: {
port: 9245,
strictPort: true,
},
})
4 changes: 4 additions & 0 deletions v3/internal/templates/svelte-ts/frontend/vite.config.ts
Expand Up @@ -4,4 +4,8 @@ import { svelte } from '@sveltejs/vite-plugin-svelte'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [svelte()],
server: {
port: 9245,
strictPort: true,
},
})
4 changes: 4 additions & 0 deletions v3/internal/templates/svelte/frontend/vite.config.js
Expand Up @@ -4,4 +4,8 @@ import { svelte } from '@sveltejs/vite-plugin-svelte'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [svelte()],
server: {
port: 9245,
strictPort: true,
},
})
2 changes: 1 addition & 1 deletion v3/internal/templates/vue-ts/frontend/package.json
Expand Up @@ -18,4 +18,4 @@
"@wailsio/runtime": "latest",
"vue-tsc": "^1.0.11"
}
}
}
4 changes: 4 additions & 0 deletions v3/internal/templates/vue-ts/frontend/vite.config.ts
Expand Up @@ -4,4 +4,8 @@ import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
server: {
port: 9245,
strictPort: true,
},
})
4 changes: 4 additions & 0 deletions v3/internal/templates/vue/frontend/vite.config.js
Expand Up @@ -4,4 +4,8 @@ import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
server: {
port: 9245,
strictPort: true,
},
})

0 comments on commit d05f293

Please sign in to comment.