Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pcattori/remix-template-vite
https://github.com/pcattori/remix-template-vite
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pcattori/remix-template-vite
- Owner: pcattori
- Created: 2023-10-19T18:57:17.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-25T14:13:33.000Z (about 1 year ago)
- Last Synced: 2024-04-22T15:25:07.633Z (9 months ago)
- Language: TypeScript
- Size: 15.6 KB
- Stars: 22
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# remix-template-vite
⚠️ Remix support for Vite is unstable and not recommended for production.
📖 See the [Remix Vite docs][remix-vite-docs] for details on supported features.
## Setup
```shellscript
npx create-remix@nightly --template pcattori/remix-template-vite
```## Minimal server
Spin up a minimal Vite dev server:
```shellscript
npm run dev
```Or build your app for production and run it:
```shellscript
npm run build
npm run start
```## Extensible server
Remix exposes APIs for integrating Vite with a custom server:
```ts
import {
unstable_createViteServer,
unstable_loadViteServerBuild,
} from "@remix-run/dev";
```In this template, we'll use Express but remember that these APIs can be used with _any_ Node-compatible server setup that supports standard middleware.
---
Spin up the Express server as a dev server:
```shellscript
npm run dev:express
```Or build your app for production and run it:
```shellscript
npm run build
npm run start:express
```[remix-vite-docs]: https://remix.run/docs/en/dev/future/vite
[extensible-server-pr]: https://github.com/remix-run/remix/pull/7682