autoRewriteIndex

@get:Internal
abstract val autoRewriteIndex: Property<Boolean>(source)

Whether to rewrite <script> declaration in the index.html file to be compatible with the Vite plugin and Hot Module Replacement. Disabled by default.

Example

vite {
autoRewriteIndex.set(true)
}