-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvite.config.mjs
More file actions
23 lines (22 loc) · 671 Bytes
/
Copy pathvite.config.mjs
File metadata and controls
23 lines (22 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import {defineConfig} from "vite";
import laravel from "laravel-vite-plugin";
import { visualizer } from 'rollup-plugin-visualizer';
export default defineConfig({
base: './',
plugins: [
laravel({
input: [
'resources/js/app.js',
'resources/js/auth.js',
],
refresh: true,
}),
// Bundle analyzer - only include in production builds with ANALYZE=true
process.env.ANALYZE && visualizer({
filename: 'public/build/bundle-analysis.html',
open: true,
gzipSize: true,
brotliSize: true,
}),
].filter(Boolean)
});