Install vue@3.5, @vitejs/plugin-vue@6.0 (Vite 8 compatible), and axios@1.9. Add vue() plugin to vite.config.js alongside existing laravel and tailwindcss plugins. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
22 lines
509 B
JavaScript
22 lines
509 B
JavaScript
import { defineConfig } from 'vite';
|
|
import laravel from 'laravel-vite-plugin';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import vue from '@vitejs/plugin-vue';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
laravel({
|
|
input: ['resources/css/app.css', 'resources/js/app.js'],
|
|
refresh: true,
|
|
}),
|
|
tailwindcss(),
|
|
vue(),
|
|
],
|
|
server: {
|
|
cors: true,
|
|
watch: {
|
|
ignored: ['**/storage/framework/views/**'],
|
|
},
|
|
},
|
|
});
|