https://github.com/nativescript/ns-vue-vite-demo
Use Vite with NativeScript Vue
https://github.com/nativescript/ns-vue-vite-demo
Last synced: 8 months ago
JSON representation
Use Vite with NativeScript Vue
- Host: GitHub
- URL: https://github.com/nativescript/ns-vue-vite-demo
- Owner: NativeScript
- Created: 2025-10-08T05:42:37.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-10-08T05:44:48.000Z (8 months ago)
- Last Synced: 2025-10-08T07:25:04.699Z (8 months ago)
- Language: TypeScript
- Homepage:
- Size: 357 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NativeScript Vue with Vite Demo
Play around with NativeScript Vue and Vite.
https://github.com/user-attachments/assets/5fd4f6d6-d849-42b5-9437-a4c41ed9a4d5
*Prerelease features coming to NativeScript v9.*
Install the prerelease cli: `npm install -g nativescript@alpha`
Then setup the repo:
```
npm install
```
## Develop with HMR
This will start Vite dev server and open a socket to the NativeScript app to develop with HMR for quick edits.
```
npm run dev:ios
// Or...
npm run dev:android
```
## Develop with Live Reload
```
ns debug ios --no-hmr
// Or...
ns debug android --no-hmr
```
### Notes
This project is configured via [nativescript.config.ts](nativescript.config.ts) to use Vite.
Explore the [vite.config.ts](vite.config.ts) where you can customize per your own needs.