mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-18 11:51:40 +02:00
Vite config updates
This commit is contained in:
@@ -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',
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user