Closed as not planned
Description
Description
By default, Vite serves the root project directory, which is not ideal for many projects.
Suggested solution
Vite should allow configuring which directories to serve via a new configuration option called serve
.
Exemple 1 :
export default { serve: "src" }
Exemple 2 :
export default { serve: { "static": ".", "src": "api" } }
Alternative
No response
Additional context
This would provide a more flexible way to configure the project structure.
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.