@arnaud-barre/rds
v0.7.11
Published
React Development Server: A modern CRA inspired by Vite and powered by SWC, esbuild & Lightning CSS
Downloads
97
Readme
RDS: React Development Server
A modern CRA inspired by Vite using SWC for Fast Refresh, Lightning CSS for CSS in dev and esbuild for bundling.
CSS is handled via downwind, a bundler-first Tailwind implementation.
Create a new project
bunx degit ArnaudBarre/rds/template my-app && cd my-app && bun i && bun run dev
CLI
rds (start|dev) [--host] [--open] [--force] [--port <number>]
: Starts the dev serverrds build [--meta]
: Builds the app for productionrds (serve|preview) [--host] [--open] [--port <number>]
: Serves the production build
Defaults
index.html
should be in/public
without referencing any source file.src/index.tsx
is the App entry point
Configuration
The (optional) configuration file should be named rds.config.ts
.
import type { RDSConfig } from "@arnaud-barre/rds";
export const config: RDSConfig = {
// ...
};
See the types definitions for more information on config options.
JS API
Each of the three mode (dev, build, preview) is exposed via JS. See the types definitions for more information.
Planned features
- plugins
- workers