Lakshya Wadhwa
Lakshya Wadhwa

Reputation: 71

How can I rename index.html file in Svelte?

So I have two components in one svelte app that I run separately using separate rollup.config files. But the problem is they both render on index.html so both render the same thing. How can I use a different index.html file for both?

Technically I know they should be independent separate apps. But it's an iframe that renders the rest of the components so it's difficult to manage and run two apps. Is there a hack or a way to rename index.html?

Upvotes: 1

Views: 793

Answers (1)

Stephane Vanraes
Stephane Vanraes

Reputation: 16411

Svelte doesn't use your index.html, your index.html uses svelte. Simply make a new html file and point it to the other bundle.

Upvotes: 1

Related Questions