Repository navigation
Expand file tree
/
Copy pathvite.config.ts
More file actions
95 lines (94 loc) · 2.64 KB
/
Copy pathvite.config.ts
File metadata and controls
95 lines (94 loc) · 2.64 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
84
85
86
87
88
89
90
91
92
93
94
95
import inertia from '@inertiajs/vite';
import { wayfinder } from '@laravel/vite-plugin-wayfinder';
import tailwindcss from '@tailwindcss/vite';
import vue from '@vitejs/plugin-vue';
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.ts'],
refresh: true,
fonts: [
bunny('Instrument Sans', {
weights: [400, 500, 600],
}),
],
}),
inertia(),
tailwindcss(),
vue({
template: {
transformAssetUrls: {
base: null,
includeAbsolute: false,
},
},
}),
wayfinder({
formVariants: false,
command: 'php artisan vetpet:wayfinder-for-vite --no-interaction',
}),
]),
server: {
host: '0.0.0.0',
port: 5173,
strictPort: true,
hmr: {
host: 'localhost',
port: Number(process.env.VITE_PORT ?? 5173),
},
cors: {
origin: [
/^https?:\/\/([a-z0-9-]+\.)*vetpet\.localhost(:\d+)?$/i,
/^https?:\/\/localhost(:\d+)?$/i,
],
},
watch: {
ignored: [
'**/.agents/**',
'**/.claude/**',
'**/.cursor/**',
'**/.junie/**',
'**/vendor/**',
],
usePolling: process.env.CHOKIDAR_USEPOLLING === 'true',
},
},
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',
},
},
});