Daydreamer-riri / vite-react-ssg

Static-site generation for React on Vite.
https://vite-react-ssg.netlify.app/
MIT License
114 stars 6 forks source link

[Question] Usage without router #10

Closed vestimir closed 9 months ago

vestimir commented 9 months ago

Can I use the package without a router, like https://github.com/antfu/vite-ssg#single-page-ssg?

I'm trying to build a minimal setup that creates an HTML file with prerendered React, single JS bundle file and single CSS file.

Is this possible?

Daydreamer-riri commented 9 months ago

Sure. I will release this feature as soon as possible. Thanks for your advice.

Daydreamer-riri commented 9 months ago

Hi @vestimir , you can use Vite-React-SSG@0.6.0 to implement Single Page SSG.

See: vite-react-ssg get started

vestimir commented 9 months ago

Thank you!