Skip to content

Provide path option and apply transform for index.html #528

@jakobrosenberg

Description

@jakobrosenberg

Is your feature request related to a problem? Please describe.
I'm trying to integrate Vite into a framework. The rigid index.html unfortunately makes this impossible.

The framework itself needs to transform index.html while 3rd part integrations require hacks to work with index.html in the project root.

Describe the solution you'd like
Providing a path option for index.html and apply transforms during build.

Describe alternatives you've considered
I tried centering the framework around Vite's index.html convention, but had to give up as it broke compatibility with other integrations.

Additional context
Hardcoding file structures when there's no technical requirement should always be avoided IMO. Good practices may be intended, but any value is lost when the price is incompatibility and ugly hacks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions