refine
refine copied to clipboard
[FEAT] Add Script for Remix SPA Mode
Is your feature request related to a problem? Please describe.
In Remix SPA Mode, the scripts differ from those in the regular Remix setup.
"dev": "remix vite:dev",
"build": "remix vite:build",
"start": "vite preview",
Currently, the refine CLI only supports Remix SSR Mode.
Describe alternatives you've considered
Using npm-run-all.
Example: npm run dev
"devtools": "refine devtools",
"dev:remix": "remix vite:dev",
"dev": "npm-run-all --parallel devtools dev:remix",
Additional context
No response
Describe the thing to improve
Whether SPA Mode is enabled can be determined from vite.config.ts. While it would be ideal if getProjectType could detect this, it seems more reasonable to make it selectable through the platform option, as shown below:
refine dev -p remix-spa