Repository navigation
Expand file tree
/
Copy pathvite.config.ts
More file actions
83 lines (82 loc) · 2.21 KB
/
Copy pathvite.config.ts
File metadata and controls
83 lines (82 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
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} from 'vite-plus';
export default defineConfig({
lint: {
options: {
typeAware: true,
typeCheck: true,
},
plugins: ['eslint', 'typescript', 'unicorn', 'oxc', 'react'],
ignorePatterns: ['vite.config.ts', 'apps/**'],
},
fmt: {
printWidth: 80,
tabWidth: 4,
useTabs: false,
semi: true,
singleQuote: true,
overrides: [
{
files: ['**/*.yml'],
options: {
tabWidth: 2,
},
},
],
sortTailwindcss: {
functions: ['clsx', 'cn'],
stylesheet: 'resources/css/app.css',
},
sortImports: {
groups: [
'builtin',
'external',
'internal',
'parent',
'sibling',
'index',
],
newlinesBetween: false,
},
ignorePatterns: [
'resources/js/components/ui/*',
'resources/views/mail/*',
'resources/js/actions/*',
'resources/js/routes/*',
'resources/js/wayfinder/*',
],
},
server: {
watch: {
ignored: ['**/storage/framework/views/**'],
},
},
plugins: [
laravel({
input: ['resources/css/app.css', 'resources/js/app.tsx'],
ssr: 'resources/js/ssr.tsx',
refresh: true,
fonts: [
bunny('Geist', {
weights: [400, 500, 600, 700],
}),
bunny('Geist Mono', {
weights: [400, 500],
}),
],
}),
react(),
babel({
presets: [reactCompilerPreset()],
}),
tailwindcss(),
wayfinder({
formVariants: true,
}),
],
});