Skip to content

Latest commit

 

History

History

vite-plugin-ssr

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Vavite vite-plugin-ssr example with Express

Simple example of using vite-plugin-ssr with Vavite and Express that shows how to:

  • Integrate Express with Vite's dev server
  • Run multiple build steps (for client and server)
  • Perform React SSR with vite-plugin-ssr

Try on StackBlitz

Clone with:

npx degit cyco130/vavite/examples/vite-plugin-ssr

All examples have "type": "module" in their package.json.

  • For Vite v2, remove it to use CommonJS (CJS).
  • If you want to use CommonJS with Vite v3+, add legacy.buildSsrCjsExternalHeuristics: true to your Vite config.