Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

vite-plugin-ssr-ssg

TomokiMiyauci524MIT1.4.1TypeScript support: included

Vite plugin for SSR and SSG

vite, vite-plugin, ssr, ssg, vue, react, preact

readme

vite-plugin-ssr-ssg logo

version downloads Commitizen friendly Gitmoji semantic-release code style: prettier

vite-plugin-ssr-ssg

Vite plugin for SSR and SSG in cross framework

✨ Feature

  • Declarative entry point
  • Simple commands that work with cross frameworks
  • Convenient setup script
  • Automatic page generation
  • Preview in SSR and CSR

📝 Read the Docs to Learn More.

💫 Quick start

In your vite project

yarn add -D vite-plugin-ssr-ssg
yarn vite-ssrg init

☘️ Support

The support status of the framework is as follows.

  • <input checked="" disabled="" type="checkbox"> React
  • <input checked="" disabled="" type="checkbox"> Peact
  • <input checked="" disabled="" type="checkbox"> Vue
  • <input disabled="" type="checkbox"> Svelte
  • <input disabled="" type="checkbox"> lit-element
  • <input disabled="" type="checkbox"> vanilla

✅ Todo

Next channel is beta.

  • <input checked="" disabled="" type="checkbox"> Auto detect dynamic routes and nested routes
  • <input checked="" disabled="" type="checkbox"> Dynamic route generation via plugin config
  • <input disabled="" type="checkbox"> Head tag preload in development environment
  • <input disabled="" type="checkbox"> Page Async Loading
  • <input disabled="" type="checkbox"> Overall Unit test
  • <input disabled="" type="checkbox"> Support for the same CLI as Vite
  • <input disabled="" type="checkbox"> Svelte support

💚 Thanks

License

MIT

changelog

v1.4.1 (2021-03-25)

🐛 Bug Fixes

1.4.1 (2021-03-25)

v1.4.1-beta.1 (2021-03-25)

🐛 Bug Fixes

1.4.1-beta.1 (2021-03-25)

v1.4.0 (2021-03-25)

✨ New Features

  • f2a7e20 Change rollup config and output

🐛 Bug Fixes

  • f8b1c68 (preact) Change import path

1.4.0 (2021-03-25)

v1.4.0-beta.2 (2021-03-25)

🐛 Bug Fixes

  • f8b1c68 (preact) Change import path

1.4.0-beta.2 (2021-03-25)

v1.3.1 (2021-03-25)

🔒 Security Issues

1.3.1 (2021-03-25)

v1.4.0-beta.1 (2021-03-25)

✨ New Features

  • f2a7e20 Change rollup config and output

1.4.0-beta.1 (2021-03-25)

v1.3.1-beta.2 (2021-03-25)

🔒 Security Issues

  • 8c0921e Resolve ssri security issue

1.3.1-beta.2 (2021-03-25)

v1.3.1-beta.1 (2021-03-25)

🔒 Security Issues

1.3.1-beta.1 (2021-03-25)

v1.3.0 (2021-03-24)

✨ New Features

  • 48babbd Deal good with nested routes

1.3.0 (2021-03-24)

v1.3.0-beta.1 (2021-03-24)

✨ New Features

  • 48babbd Deal good with nested routes

1.3.0-beta.1 (2021-03-24)

v1.2.1 (2021-03-24)

🐛 Bug Fixes

  • f263075 (react) Fix template for package.json

1.2.1 (2021-03-24)

v1.2.1-beta.1 (2021-03-24)

🐛 Bug Fixes

  • f263075 (react) Fix template for package.json

1.2.1-beta.1 (2021-03-24)

v1.2.0 (2021-03-23)

✨ New Features

  • bcb5915 (vue3) Add dynamic route parser
  • 843aac4 Add plugin interface
  • 92f3ed2 Change option interface
  • 9dee9e9 Add dynamic routes for generation
  • 5bf57e4 Accept async function to generate routes option
  • 01af800 (react) Add dynamic router parser for react routes
  • eb2398d (preact) Add dynamic route parser for preact
  • 707ce96 Add cross framework getRoutes function

🐛 Bug Fixes

1.2.0 (2021-03-23)

v1.2.0-beta.11 (2021-03-24)

🐛 Bug Fixes

  • f263075 (react) Fix template for package.json

1.2.0-beta.11 (2021-03-24)

v1.2.0-beta.10 (2021-03-23)

✨ New Features

  • 707ce96 Add cross framework getRoutes function

1.2.0-beta.10 (2021-03-23)

v1.2.0-beta.9 (2021-03-23)

✨ New Features

  • eb2398d (preact) Add dynamic route parser for preact

1.2.0-beta.9 (2021-03-23)

v1.2.0-beta.8 (2021-03-23)

✨ New Features

  • 01af800 (react) Add dynamic router parser for react routes

1.2.0-beta.8 (2021-03-23)

v1.2.0-beta.7 (2021-03-23)

✨ New Features

  • 5bf57e4 Accept async function to generate routes option

1.2.0-beta.7 (2021-03-23)

v1.2.0-beta.6 (2021-03-23)

✨ New Features

  • 9dee9e9 Add dynamic routes for generation

1.2.0-beta.6 (2021-03-23)

v1.2.0-beta.5 (2021-03-23)

🐛 Bug Fixes

1.2.0-beta.5 (2021-03-23)

v1.2.0-beta.4 (2021-03-23)

✨ New Features

🐛 Bug Fixes

1.2.0-beta.4 (2021-03-23)

v1.2.0-beta.3 (2021-03-23)

🐛 Bug Fixes

1.2.0-beta.3 (2021-03-23)

v1.2.0-beta.2 (2021-03-23)

✨ New Features

🐛 Bug Fixes

1.2.0-beta.2 (2021-03-23)

v1.2.0-beta.1 (2021-03-22)

✨ New Features

  • bcb5915 (vue3) Add dynamic route parser

1.2.0-beta.1 (2021-03-22)

v1.1.0 (2021-03-22)

✨ New Features

  • ea22fb4 (vue3) Add head pre-render test
  • 2f4622f (react) Add react-head template

🐛 Bug Fixes

  • 4a8da9e (vue3) Remove title from template

1.1.0 (2021-03-22)

v1.1.0-beta.3 (2021-03-22)

✨ New Features

  • 2f4622f (react) Add react-head template

1.1.0-beta.3 (2021-03-22)

v1.1.0-beta.2 (2021-03-22)

🐛 Bug Fixes

  • 4a8da9e (vue3) Remove title from template

1.1.0-beta.2 (2021-03-22)

v1.1.0-beta.1 (2021-03-22)

✨ New Features

  • ea22fb4 (vue3) Add head pre-render test

1.1.0-beta.1 (2021-03-22)

v1.0.1 (2021-03-20)

🐛 Bug Fixes

  • 7082bf5 Change render function interface

1.0.1 (2021-03-20)

v1.0.1-beta.1 (2021-03-20)

🐛 Bug Fixes

  • 7082bf5 Change render function interface

1.0.1-beta.1 (2021-03-20)

v1.0.0 (2021-03-20)

✨ New Features

🐛 Bug Fixes

1.0.0 (2021-03-20)

v1.0.0-beta.1 (2021-03-20)

✨ New Features

🐛 Bug Fixes

1.0.0-beta.1 (2021-03-20)

v1.0.0-alpha.60 (2021-03-20)

🐛 Bug Fixes

1.0.0-alpha.60 (2021-03-20)

v1.0.0-alpha.59 (2021-03-20)

✨ New Features

  • 80290f2 Add log before initialize

1.0.0-alpha.59 (2021-03-20)

v1.0.0-alpha.58 (2021-03-20)

✨ New Features

  • b3e6cb7 (react) Add template for react

🐛 Bug Fixes

1.0.0-alpha.58 (2021-03-20)

v1.0.0-alpha.57 (2021-03-20)

✨ New Features

  • d2975fe (preact) Add template for preact

🐛 Bug Fixes

  • 297e104 (preact) Change ext to jsx

1.0.0-alpha.57 (2021-03-20)

v1.0.0-alpha.56 (2021-03-19)

🐛 Bug Fixes

1.0.0-alpha.56 (2021-03-19)

v1.0.0-alpha.55 (2021-03-19)

🐛 Bug Fixes

1.0.0-alpha.55 (2021-03-19)

v1.0.0-alpha.54 (2021-03-19)

🐛 Bug Fixes

1.0.0-alpha.54 (2021-03-19)

v1.0.0-alpha.53 (2021-03-19)

🐛 Bug Fixes

1.0.0-alpha.53 (2021-03-19)

v1.0.0-alpha.52 (2021-03-19)

🐛 Bug Fixes

1.0.0-alpha.52 (2021-03-19)

v1.0.0-alpha.51 (2021-03-19)

🐛 Bug Fixes

1.0.0-alpha.51 (2021-03-19)

v1.0.0-alpha.50 (2021-03-19)

✨ New Features

🐛 Bug Fixes

1.0.0-alpha.50 (2021-03-19)

v1.0.0-alpha.49 (2021-03-19)

✨ New Features

  • 33f2a6c Add init command for vue3 ts

🐛 Bug Fixes

1.0.0-alpha.49 (2021-03-19)

v1.0.0-alpha.48 (2021-03-19)

✨ New Features

1.0.0-alpha.48 (2021-03-19)

v1.0.0-alpha.47 (2021-03-19)

✨ New Features

1.0.0-alpha.47 (2021-03-19)

v1.0.0-alpha.46 (2021-03-19)

🐛 Bug Fixes

1.0.0-alpha.46 (2021-03-19)

v1.0.0-alpha.45 (2021-03-19)

🐛 Bug Fixes

  • 50d8d11 Await for page pre-loading

1.0.0-alpha.45 (2021-03-19)

v1.0.0-alpha.44 (2021-03-19)

🐛 Bug Fixes

  • b65f8cb Wait for client side bundle

1.0.0-alpha.44 (2021-03-19)

v1.0.0-alpha.43 (2021-03-19)

✨ New Features

1.0.0-alpha.43 (2021-03-19)

v1.0.0-alpha.42 (2021-03-19)

🐛 Bug Fixes

1.0.0-alpha.42 (2021-03-19)

v1.0.0-alpha.41 (2021-03-19)

✨ New Features

1.0.0-alpha.41 (2021-03-19)

v1.0.0-alpha.40 (2021-03-18)

🐛 Bug Fixes

1.0.0-alpha.40 (2021-03-18)

v1.0.0-alpha.39 (2021-03-18)

✨ New Features

  • 777f812 Change output dir structure

1.0.0-alpha.39 (2021-03-18)

v1.0.0-alpha.38 (2021-03-18)

✨ New Features

  • 7494b0b Remove dist when script is starting

1.0.0-alpha.38 (2021-03-18)

v1.0.0-alpha.37 (2021-03-18)

✨ New Features

  • 224e13c (vue3) Apply vite ssr and ssg

1.0.0-alpha.37 (2021-03-18)

v1.0.0-alpha.36 (2021-03-18)

🐛 Bug Fixes

1.0.0-alpha.36 (2021-03-18)

v1.0.0-alpha.35 (2021-03-18)

🐛 Bug Fixes

1.0.0-alpha.35 (2021-03-18)

v1.0.0-alpha.34 (2021-03-18)

✨ New Features

  • 8104d86 (vue3) Add helper for vue3

🐛 Bug Fixes

1.0.0-alpha.34 (2021-03-18)

v1.0.0-alpha.33 (2021-03-17)

✨ New Features

  • 331d517 (preact) Add SSR and SSG commands

1.0.0-alpha.33 (2021-03-17)

v1.0.0-alpha.32 (2021-03-17)

🐛 Bug Fixes

1.0.0-alpha.32 (2021-03-17)

v1.0.0-alpha.31 (2021-03-17)

🐛 Bug Fixes

1.0.0-alpha.31 (2021-03-17)

v1.0.0-alpha.30 (2021-03-17)

🐛 Bug Fixes

1.0.0-alpha.30 (2021-03-17)

v1.0.0-alpha.29 (2021-03-17)

🐛 Bug Fixes

1.0.0-alpha.29 (2021-03-17)

v1.0.0-alpha.28 (2021-03-17)

✨ New Features

  • 8f0183d (preact) Add preact helper

1.0.0-alpha.28 (2021-03-17)

v1.0.0-alpha.27 (2021-03-17)

🐛 Bug Fixes

1.0.0-alpha.27 (2021-03-17)

v1.0.0-alpha.26 (2021-03-17)

🐛 Bug Fixes

  • c9912aa (react) Change getRoutes interface

1.0.0-alpha.26 (2021-03-17)

v1.0.0-alpha.25 (2021-03-17)

✨ New Features

1.0.0-alpha.25 (2021-03-17)

v1.0.0-alpha.24 (2021-03-16)

🐛 Bug Fixes

  • 9fbd450 (react) Fix output options

1.0.0-alpha.24 (2021-03-16)

v1.0.0-alpha.23 (2021-03-16)

✨ New Features

  • 68335c6 (react) Add script for react

1.0.0-alpha.23 (2021-03-16)

v1.0.0-alpha.22 (2021-03-16)

✨ New Features

1.0.0-alpha.22 (2021-03-16)

v1.0.0-alpha.21 (2021-03-16)

🐛 Bug Fixes

1.0.0-alpha.21 (2021-03-16)

v1.0.0-alpha.20 (2021-03-16)

🐛 Bug Fixes

1.0.0-alpha.20 (2021-03-16)

v1.0.0-alpha.19 (2021-03-16)

✨ New Features

1.0.0-alpha.19 (2021-03-16)

v1.0.0-alpha.18 (2021-03-16)

🐛 Bug Fixes

1.0.0-alpha.18 (2021-03-16)

v1.0.0-alpha.17 (2021-03-16)

🐛 Bug Fixes

1.0.0-alpha.17 (2021-03-16)

v1.0.0-alpha.16 (2021-03-16)

🐛 Bug Fixes

1.0.0-alpha.16 (2021-03-16)

v1.0.0-alpha.15 (2021-03-16)

✨ New Features

  • a546023 Add auto detect routes from pages file

1.0.0-alpha.15 (2021-03-16)

v1.0.0-alpha.14 (2021-03-15)

✨ New Features

1.0.0-alpha.14 (2021-03-15)

v1.0.0-alpha.13 (2021-03-15)

✨ New Features

1.0.0-alpha.13 (2021-03-15)

v1.0.0-alpha.12 (2021-03-15)

✨ New Features

1.0.0-alpha.12 (2021-03-15)

v1.0.0-alpha.11 (2021-03-15)

🐛 Bug Fixes

1.0.0-alpha.11 (2021-03-15)

v1.0.0-alpha.10 (2021-03-15)

🐛 Bug Fixes

1.0.0-alpha.10 (2021-03-15)

v1.0.0-alpha.9 (2021-03-15)

🐛 Bug Fixes

1.0.0-alpha.9 (2021-03-15)

v1.0.0-alpha.8 (2021-03-15)

🐛 Bug Fixes

1.0.0-alpha.8 (2021-03-15)

v1.0.0-alpha.7 (2021-03-15)

🐛 Bug Fixes

1.0.0-alpha.7 (2021-03-15)

v1.0.0-alpha.6 (2021-03-14)

🐛 Bug Fixes

1.0.0-alpha.6 (2021-03-14)

v1.0.0-alpha.5 (2021-03-14)

🐛 Bug Fixes

1.0.0-alpha.5 (2021-03-14)

v1.0.0-alpha.4 (2021-03-14)

✨ New Features

1.0.0-alpha.4 (2021-03-14)

v1.0.0-alpha.3 (2021-03-14)

✨ New Features

1.0.0-alpha.3 (2021-03-14)

v1.0.0-alpha.2 (2021-03-14)

✨ New Features

1.0.0-alpha.2 (2021-03-14)

v1.0.0-alpha.1 (2021-03-14)

✨ New Features

1.0.0-alpha.1 (2021-03-14)