-
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) · 769 Bytes
/
Copy pathvite.config.js
File metadata and controls
26 lines (25 loc) · 769 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 { svelte } from "@sveltejs/vite-plugin-svelte";
export default defineConfig(({ command }) => {
const isBuild = command === "build";
return {
base: isBuild ? "/public/build/" : "/",
plugins: [
laravel({
publicDirectory: "storage/public",
input: [
"storage/inertia/css/app.css",
"storage/inertia/js/app.js",
],
ssr: "storage/inertia/js/ssr.js",
refresh: true,
}),
svelte({
compilerOptions: {
hydratable: true,
},
}),
],
};
});