Skip to content

Instantly share code, notes, and snippets.

@mgussekloo
Created September 19, 2025 09:33
Show Gist options
  • Save mgussekloo/08d35dff72feaefa81501afb8103ab4d to your computer and use it in GitHub Desktop.
Save mgussekloo/08d35dff72feaefa81501afb8103ab4d to your computer and use it in GitHub Desktop.
Vite config demo
import { defineConfig } from 'vite'
import tailwindcss from "@tailwindcss/vite";
export default defineConfig({
build: {
target: ['es2020', 'firefox128', 'chrome111', 'safari16.4'],
rollupOptions: {
input: ['resources/js/app.js'],
output: {
entryFileNames: `[name].js`,
assetFileNames: `[name].[ext]`,
dir: 'public/static'
},
},
},
emptyOutDir: true,
outDir: 'public/static',
publicDir: 'resources/public',
plugins: [
tailwindcss(),
]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment