templates/spa
This template leverages Remix SPA Mode to build your app as a Single-Page Application using Client Data for all of you data loads and mutations.
📖 See the Remix Vite docs for details on supported features.
Setup
npx create-remix@latest --template remix-run/remix/templates/spa
Development
You can develop your SPA app just like you would a normal Remix app, via:
npm run dev
Production
When you are ready yo build a production version of your app, npm run build
will generate your assets and an index.html
for the SPA.
npm run build
You can serve this from any server of your choosing, for a simple example, you could use http-server:
npx http-server build/client/