technologiestiftung / vite-react-ssg-example

MIT License
0 stars 0 forks source link

How to use it in a multi-page application? #2

Open luxi-record opened 1 month ago

luxi-record commented 1 month ago

How to use it in a multi-page application?

### Tasks
raphael-arce commented 1 month ago

@luxi-record could you specify a bit more you question? In the current form, this repository is an example multi page application.

You can see the routes here: https://github.com/technologiestiftung/vite-react-ssg-example/blob/main/src/routes/routes.ts and the pages implementation here: https://github.com/technologiestiftung/vite-react-ssg-example/tree/main/src/pages

luxi-record commented 1 month ago

I have multiple entry HTML files. rollupOptions like this rollupOptions: { input: { chat: path.resolve(dirname, 'src/pages/chat/index.html'), settings: path.resolve(dirname, 'src/pages/settings/client.tsx'), screenshot: path.resolve(__dirname, 'src/pages/screenshot/index.html') }, }