Skip to content

Commit

Permalink
update vite config
Browse files Browse the repository at this point in the history
  • Loading branch information
luxplanjay committed Aug 22, 2024
1 parent 0bf065d commit df7668c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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')) {
Expand Down

0 comments on commit df7668c

Please sign in to comment.