diff --git a/vite.config.js b/vite.config.js index d46c009..4df1b74 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,5 +1,5 @@ import { defineConfig } from 'vite'; -import glob from 'glob'; +import { glob } from 'glob'; import injectHTML from 'vite-plugin-html-inject'; import FullReload from 'vite-plugin-full-reload'; import SortCss from 'postcss-sort-media-queries'; @@ -12,9 +12,8 @@ export default defineConfig(({ command }) => { root: 'src', build: { sourcemap: true, - rollupOptions: { - input: glob.sync('./src/*.html'), + input: glob.sync('./src/*.html', { absolute: true }).matches, output: { manualChunks(id) { if (id.includes('node_modules')) {