- File based routing and MDX support
- Vite.js tooling.
- Express.js server.
- Prettier code formatter.
During development, the index.html is not a result of server-side rendering, but rather the Qwik app is built using client-side JavaScript only. This is ideal for development with Vite and its ability to reload modules quickly and on-demand. However, this mode is only for development and does not showcase "how" Qwik works since JavaScript is required to execute, and Vite imports many development modules for the app to work.
yarn dev
Server-side rendered index.html, with client-side modules prefetched and loaded by the browser. This can be used to test out server-side rendered content during development, but will be slower than the client-only development builds.
yarn dev.ssr
A production build should generate the client and server modules by running both client and server build commands.
yarn build
Production build that creates only the client-side modules that are dynamically imported by the browser.
yarn build.client
Production build that creates the server-side render (SSR) module that is used by the server to render the HTML.
yarn build.ssr
This app has a minimal Express server implementation. After running a full build, you can preview the build using the command:
yarn serve
Then visit http://localhost:8080/
This app has a minimal Express server implementation. After running a full build, you can preview the build using the command:
yarn serve
Then visit http://localhost:8080/
This app has a minimal Express server implementation. After running a full build, you can preview the build using the command:
npm run serve
Then visit http://localhost:8080/