-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathssr.config.ts
29 lines (28 loc) · 887 Bytes
/
ssr.config.ts
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
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import laravel from "laravel-vite-plugin";
export default defineConfig({
plugins: [
laravel({
input: ['resources/js/app.ts', 'resources/css/app.css'],
ssr: 'resources/js/ssr.ts', // Enable SSR
publicDirectory: 'public',
buildDirectory: 'bootstrap',
refresh: true,
}),
vue(),
],
build: {
ssr: true, // Enable SSR
outDir: 'bootstrap',
rollupOptions: {
input: 'resources/js/ssr.ts',
output: {
entryFileNames: 'assets/[name].js',
chunkFileNames: 'assets/[name].js',
assetFileNames: 'assets/[name][extname]',
manualChunks: undefined, // Disable automatic chunk splitting
},
},
},
});