Created
September 19, 2025 09:33
-
-
Save mgussekloo/08d35dff72feaefa81501afb8103ab4d to your computer and use it in GitHub Desktop.
Vite config demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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