Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/richardeschloss/nuxt-vite
Nuxt + Vite!! HMR so fast it'll make your head spin! Plus all the benefits of Nuxt
https://github.com/richardeschloss/nuxt-vite
nuxt nuxtjs vite vue vuejs
Last synced: about 2 months ago
JSON representation
Nuxt + Vite!! HMR so fast it'll make your head spin! Plus all the benefits of Nuxt
- Host: GitHub
- URL: https://github.com/richardeschloss/nuxt-vite
- Owner: richardeschloss
- License: mit
- Created: 2020-05-15T08:09:16.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-04T06:49:04.000Z (almost 4 years ago)
- Last Synced: 2024-11-01T07:42:46.790Z (about 2 months ago)
- Topics: nuxt, nuxtjs, vite, vue, vuejs
- Language: JavaScript
- Size: 588 KB
- Stars: 56
- Watchers: 7
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# nuxt-vite
> Nuxt Vite -- HMR so fast it'll make your head spin!
## Installation:
1. Clone this repo and in your project root, install deps:
2. Install deps:> npm i # or yarn
If using yarn, may want to disable the npm postinstall script (by changing it to "postinstallx") since yarn workspaces have been set up.
## Running:
1. Start Nuxt.
> npm run dev:nuxt # or yarn dev:nuxt
2. Start Vite. (a separate terminal)
> npm run dev:vite # or yarn dev:vite
3. Start both at once:
> npm run dev # or yarn vite
NUXT will be running on port 3000. http://localhost:3000
Vite will be on port 3001. http://localhost:3001Customize the scripts as you see fit. It'll try to auto-open to the browser to the app's URL. For linux, the command is "xdg-open [URL]", darwin it's "open [URL]", and win32, it's "cmd /c start [URL]"
## Usage:
Just edit your Nuxt stuff like you normally do! pages, components, assets, static files. They're all sym linked to the vite project! So what you do in Nuxt will mostly be seen in Vite. However, what's not in the Vite repo is the Nuxt context, so it's better for rapidly developing components in isolation, and then checking back on the Nuxt screen when you need it to work there.
## Some notes: (words of caution)
Vite is so spanking new, it's probably the most awesome thing to happen to the Vue dev experience. However, with new stuff also comes that "experimental feel". Expect pain points, but if you want to be a part of something awesome, this is it.
## License
[MIT License](./LICENSE)
Copyright (c) Richard Schloss