From 2c2e57cc01776eda08d35b1f6de274b4ac14b56b Mon Sep 17 00:00:00 2001 From: Chris Kankiewicz Date: Mon, 17 Mar 2025 11:14:52 -0700 Subject: [PATCH] Vite config updates --- vite.config.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/vite.config.js b/vite.config.js index 4b7880d..2f376aa 100644 --- a/vite.config.js +++ b/vite.config.js @@ -3,11 +3,10 @@ import tailwindcss from '@tailwindcss/vite' export default defineConfig(({ command }) => { return { - cacheDir: '.cache/vite', build: { + outDir: 'app', emptyOutDir: false, manifest: 'manifest.json', - outDir: 'app', rollupOptions: { input: [ 'app/resources/css/app.css', @@ -19,15 +18,12 @@ export default defineConfig(({ command }) => { host: true, port: 5173, strictPort: true, - cors: { - origin: '*' - }, - hmr: command === 'serve' ? { - host: 'directory-lister.local' - } : {}, + allowedHosts: true, + cors: true, }, plugins: [ tailwindcss(), ], + cacheDir: '.cache/vite', } });