26 lines
690 B
JavaScript
26 lines
690 B
JavaScript
import { defineConfig } from 'vite';
|
|
import laravel from 'laravel-vite-plugin';
|
|
import { wayfinder } from '@laravel/vite-plugin-wayfinder';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
laravel({
|
|
input: [
|
|
'resources/css/app.css',
|
|
'resources/js/app.tsx',
|
|
'resources/js/guest/main.tsx',
|
|
'resources/js/admin/main.tsx',
|
|
],
|
|
refresh: true,
|
|
}),
|
|
wayfinder(),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': './resources/js',
|
|
},
|
|
extensions: ['.js', '.jsx', '.ts', '.tsx', '.json'],
|
|
},
|
|
}); |