Back to Vite

Qwik + Vite

packages/create-vite/template-qwik/README.md

8.0.10996 B
Original Source

Qwik + Vite

Qwik in CSR mode

This starter is using a pure CSR (Client-Side Rendering) mode. This means, that the application is fully bootstrapped in the browser. Most of Qwik innovations however take advantage of SSR (Server-Side Rendering) mode.

ts
export default defineConfig({
  plugins: [
    qwikVite({
      csr: true,
    }),
  ],
})

Use npm create qwik@latest to create a full production ready Qwik application, using SSR and QwikCity, our server-side meta-framework.

Usage

bash
$ npm install # or pnpm install or yarn install

Learn more on the Qwik Website and join our community on our Discord

Available Scripts

In the project directory, you can run:

npm run dev

Runs the app in the development mode.

Open http://localhost:5173 to view it in the browser.

npm run build

Builds the app for production to the dist folder.