fastify-vite
fastify-vite copied to clipboard
How to configure multi-page entry
Prerequisites
- [X] I have written a descriptive issue title
- [X] 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
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(?)
How do you configure multiple entry points with vite?
How do you configure multiple entry points with vite?
https://vitejs.dev/guide/build#multi-page-app
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.
Cc @galvez if you have time
@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.
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!
@galvez I'm unfortunately not free on Saturday afternoon. When is your next availability after that?