| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- import inertia from '@inertiajs/vite';
- import { wayfinder } from '@laravel/vite-plugin-wayfinder';
- import babel from '@rolldown/plugin-babel';
- import tailwindcss from '@tailwindcss/vite';
- import react, { reactCompilerPreset } from '@vitejs/plugin-react';
- import laravel from 'laravel-vite-plugin';
- import { bunny } from 'laravel-vite-plugin/fonts';
- import { defineConfig, lazyPlugins } from 'vite-plus';
-
- export default defineConfig({
- plugins: lazyPlugins(() => [
- laravel({
- input: ['resources/css/app.css', 'resources/js/app.tsx'],
- refresh: true,
- fonts: [
- bunny('Instrument Sans', {
- weights: [400, 500, 600],
- }),
- ],
- }),
- inertia(),
- react(),
- babel({
- presets: [reactCompilerPreset()],
- }),
- tailwindcss(),
- wayfinder({
- formVariants: true,
- }),
- ]),
- server: {
- watch: {
- ignored: [
- '**/.agents/**',
- '**/.claude/**',
- '**/.cursor/**',
- '**/.junie/**',
- '**/vendor/**',
- ],
- },
- },
- lint: {
- ignorePatterns: [
- 'vendor/**',
- 'node_modules/**',
- 'public/**',
- 'bootstrap/ssr/**',
- 'tailwind.config.js',
- 'resources/js/actions/**',
- 'resources/js/components/ui/*',
- 'resources/js/routes/**',
- 'resources/js/wayfinder/**',
- ],
- options: {
- denyWarnings: true,
- typeAware: true,
- },
- },
- fmt: {
- printWidth: 80,
- tabWidth: 4,
- singleQuote: true,
- semi: true,
- singleAttributePerLine: false,
- htmlWhitespaceSensitivity: 'css',
- ignorePatterns: [
- '.github/**',
- 'composer.json',
- 'resources/js/components/ui/*',
- 'resources/views/mail/*',
- ],
- sortTailwindcss: {
- functions: ['clsx', 'cn', 'cva'],
- stylesheet: 'resources/css/app.css',
- },
- },
- });
|