Repository navigation
Expand file tree
/
Copy pathvite.config.js
More file actions
83 lines (82 loc) · 2.97 KB
/
Copy pathvite.config.js
File metadata and controls
83 lines (82 loc) · 2.97 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 tailwindcss from '@tailwindcss/vite';
import react from '@vitejs/plugin-react';
import laravel from 'laravel-vite-plugin';
import { bunny, google, local } from 'laravel-vite-plugin/fonts';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [
laravel({
input: [
'resources/css/app.css',
'resources/js/app.js',
'resources/css/filament/admin/theme.css',
'resources/css/filament/app/theme.css',
'app-modules/he4rt/resources/css/theme.css',
'app-modules/docs/resources/css/theme.css',
'app-modules/portal/resources/css/retrospective.css',
'app-modules/panel-overlays/resources/js/app.tsx',
],
refresh: true,
fonts: [
bunny('Instrument Sans', {
weights: [400, 500, 600],
}),
bunny('Nunito', {
weights: [400, 600, 700],
}),
google('Fraunces', {
weights: [400, 500, 600, 700],
styles: ['normal', 'italic'],
}),
google('Hanken Grotesk', {
weights: [400, 500, 600, 700],
}),
google('JetBrains Mono', {
weights: [400, 500, 700],
}),
local('Satoshi', {
variants: [
{ src: 'app-modules/he4rt/resources/fonts/satoshi/Satoshi-Light.woff2', weight: 300 },
{ src: 'app-modules/he4rt/resources/fonts/satoshi/Satoshi-Regular.woff2', weight: 400 },
{ src: 'app-modules/he4rt/resources/fonts/satoshi/Satoshi-Medium.woff2', weight: 500 },
{ src: 'app-modules/he4rt/resources/fonts/satoshi/Satoshi-Bold.woff2', weight: 700 },
],
}),
local('Fira-Code', {
src: 'app-modules/he4rt/resources/fonts/fira-code/FiraCode-Regular.ttf',
}),
],
}),
react(),
tailwindcss(),
],
server: {
cors: true,
watch: {
ignored: [
'**/.agents/**',
'**/.claude/**',
'**/.cursor/**',
'**/.junie/**',
'**/storage/framework/views/**',
'**/vendor/**',
],
},
},
build: {
minify: 'oxc',
cssMinify: true,
chunkSizeWarningLimit: 1600,
reportCompressedSize: false,
rolldownOptions: {
output: {
manualChunks(id) {
if (id.includes('node_modules')) {
// Creates chunks based on the package name
return id.toString().split('node_modules/')[1].split('/')[0].toString();
}
},
},
},
},
});