Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
luxi-record opened this issue Oct 21, 2024 · 2 comments
Open

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

luxi-record opened this issue Oct 21, 2024 · 2 comments

Comments

@luxi-record
Copy link

luxi-record commented Oct 21, 2024

How to use it in a multi-page application?

Tasks

Preview Give feedback
No tasks being tracked yet.
@raphael-arce
Copy link
Contributor

@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
Copy link
Author

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')
},
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants