first commit
This commit is contained in:
34
laravel/vite.config.ts
Normal file
34
laravel/vite.config.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
import { wayfinder } from '@laravel/vite-plugin-wayfinder';
|
||||
// @ts-ignore
|
||||
import tailwindcss from '@tailwindcss/vite';
|
||||
// @ts-ignore
|
||||
import react from '@vitejs/plugin-react';
|
||||
import laravel from 'laravel-vite-plugin';
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
laravel({
|
||||
input: ['resources/css/app.css', 'resources/js/app.tsx'],
|
||||
ssr: 'resources/js/ssr.tsx',
|
||||
refresh: true,
|
||||
}),
|
||||
react({
|
||||
babel: {
|
||||
plugins: ['babel-plugin-react-compiler'],
|
||||
},
|
||||
}),
|
||||
tailwindcss(),
|
||||
wayfinder({
|
||||
formVariants: true,
|
||||
}),
|
||||
],
|
||||
esbuild: {
|
||||
jsx: 'automatic',
|
||||
},
|
||||
server: {
|
||||
proxy: {
|
||||
'/api': 'http://localhost:8080',
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user