#Is it possible to prevent the bundling the inline script in index.html with the rest of js?

1 messages · Page 1 of 1 (latest)

serene dew
#

I want to have some important configuration code in the index.html in the build. But vite packs it into the same bundle as the rest of the js. Is there some way to prevent it?

split carbon
#

let me know your idea, pls share what do you want

serene dew
#

My solution was to use two separate <script> blocks - one with type="module" and one without. So, the first one was absorbed by the bundle, but the other one stayed in the index.html

split carbon
#

okay, so current status?

serene dew
#

Solved