A basic example of using @marko/run with @markopack/rspack.
# Install dependencies
npm install
# Start development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run previewsrc/routes/
├── +page.marko
├── about/+page.marko
├── guides/getting-started/+page.marko
├── guides/advanced/performance/+page.marko
├── _marketing.contact/+page.marko
├── blog/$slug/+handler.ts
├── products/$category/$id/+handler.ts
├── docs/$$rest/+handler.ts
└── api/users/+handler.ts
This example uses rspack instead of Vite:
- Build Tool: Rspack instead of Rollup (Vite)
- Integration:
@markopack/rspackinstead of@marko/run/vite - Programmatic API:
build()anddev()functions instead of vite config plugin
- Multi-page static routes
- Nested static routes
- Dynamic segments (
$param) - Catch-all segment (
$$rest) - Pathless grouping (
_segment) - API-style handler routes
- Node.js adapter
- Hot reload
- Production builds