From b6377ce479e26633afb8aade6e2ff51d756a7f0f Mon Sep 17 00:00:00 2001 From: Matt Mazzola Date: Tue, 5 Mar 2024 08:21:22 -0800 Subject: [PATCH] Change dev and build commands to use npm scripts to allow remix cli (#8975) Co-authored-by: Matt Brophy --- docs/future/spa-mode.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/future/spa-mode.md b/docs/future/spa-mode.md index 7b4cfc72e8d..d3dec43c7bd 100644 --- a/docs/future/spa-mode.md +++ b/docs/future/spa-mode.md @@ -58,7 +58,7 @@ export default defineConfig({ In SPA Mode, you develop the same way you would for a traditional Remix SSR app, and you actually use a running Remix dev server in order to enable HMR/HDR: ```sh -remix vite:dev +npx remix vite:dev ``` ### Production @@ -66,7 +66,7 @@ remix vite:dev When you build your app in SPA Mode, Remix will call the server handler for the `/` route and save the rendered HTML in an `index.html` file alongside your client side assets (by default `build/client/index.html`). ```sh -remix vite:build +npx remix vite:build ``` #### Preview