diff --git a/configs/svite.config.js b/configs/svite.config.js index b36f378..f6de1e9 100644 --- a/configs/svite.config.js +++ b/configs/svite.config.js @@ -3,15 +3,23 @@ module.exports = { condition: ({ pkgjson }) => pkgjson.dependencies['@svitejs/vite-plugin-svelte'], supersedes: ['default'], config: () => { - const { readFileSync } = require('fs') - const html = readFileSync('./dist/index.html', 'utf8') - const script = 'dist' + html.match(/