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 configure multi-page entry #113

Open
2 tasks done
sbfkcel opened this issue Aug 30, 2023 · 8 comments
Open
2 tasks done

How to configure multi-page entry #113

sbfkcel opened this issue Aug 30, 2023 · 8 comments

Comments

@sbfkcel
Copy link

sbfkcel commented Aug 30, 2023

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the feature has not already been requested

🚀 Feature Proposal

I tried to configure multi-page entry which is currently not supported

Or did I not find the corresponding documentation?

Motivation

Many times, multi-page entry is very important. Vite itself also allows the configuration of multi-page entrances.

Example

No response

@wimbarelds
Copy link

I wanted to use fastify for my dev server, but also needed multiple entrypoints.

Did some digging in the source code but seems this is currently not possible but should be easy to add(?)

@onlywei
Copy link
Collaborator

onlywei commented Jun 22, 2024

How do you configure multiple entry points with vite?

@wimbarelds
Copy link

How do you configure multiple entry points with vite?

https://vitejs.dev/guide/build#multi-page-app

@Dan-Shields
Copy link

This issue is unfortunately preventing us from using the plugin. It feels like its scope is stretched by offering SSR support which then that means it doesn't support all configuration options in the vite config (rollup inputs are manually specified for MPAs).

I'm going to work on an MPA plugin for vite and report back if I get anywhere.

@gurgunday
Copy link
Member

Cc @galvez if you have time

@galvez
Copy link
Member

galvez commented Aug 8, 2024

@Dan-Shields @onlywei indeed, that should be a somewhat straightforward change to implement, where we no longer consider client/index.js but rather a list as defined by the Vite configuration.

@galvez
Copy link
Member

galvez commented Aug 8, 2024

I still have a massive PR from @onlywei to review over the weekend, but let's see 😄

@onlywei if you want to be onboarded I'll be free Saturday afternoon, let me know!

@onlywei
Copy link
Collaborator

onlywei commented Aug 9, 2024

@galvez I'm unfortunately not free on Saturday afternoon. When is your next availability after that?

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

6 participants