Skip to content

Commit d428243

Browse files
authored
fix(vite): configure transformIndexHtml to insert body after (#127)
1 parent 1235cff commit d428243

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ export default defineConfig({
2222
publicPath: " window.__dynamic_base__",
2323
// dynamic load resources on index.html, default false. maybe change default true
2424
transformIndexHtml: true,
25+
transformIndexHtmlConfig: {
26+
insertBodyAfter: true,
27+
},
2528
}),
2629
],
2730
base: process.env.NODE_ENV === "production" ? "/__dynamic_base__/" : "/",

0 commit comments

Comments
 (0)