diff --git a/src/plugins/pluginAddEntry.ts b/src/plugins/pluginAddEntry.ts index d7d35ad..5cd4465 100644 --- a/src/plugins/pluginAddEntry.ts +++ b/src/plugins/pluginAddEntry.ts @@ -55,6 +55,7 @@ const addEntry = ({ }); }, transformIndexHtml(c) { + if (inject !== 'html') return; return c.replace( '
', `