-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
26 lines (25 loc) · 787 Bytes
/
Copy pathvite.config.js
File metadata and controls
26 lines (25 loc) · 787 Bytes
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
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import { bunny } from 'laravel-vite-plugin/fonts';
import tailwindcss from '@tailwindcss/vite';
// Compila os recursos globais, a fonte da interface e as classes Tailwind.
export default defineConfig({
plugins: [
laravel({
input: ['resources/css/style.css', 'resources/js/app.js'],
refresh: true,
fonts: [
bunny('Instrument Sans', {
weights: [400, 500, 600],
}),
],
}),
tailwindcss(),
],
// Evita recompilacoes causadas pelo cache de views gerado pelo Laravel.
server: {
watch: {
ignored: ['**/storage/framework/views/**'],
},
},
});