-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathvite.config.ts
35 lines (34 loc) · 1.02 KB
/
vite.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
30
31
32
33
34
35
import { defineConfig } from "vite";
import { VitePWA } from "vite-plugin-pwa";
// https://vitejs.dev/config/
export default defineConfig({
root: "./app/Resources",
base: "/assets/",
build: {
outDir: "../../public/assets",
assetsDir: "",
manifest: true,
sourcemap: true,
rollupOptions: {
input: {
"admin-audio-player.ts": "app/Resources/js/admin-audio-player.ts",
"admin.ts": "app/Resources/js/admin.ts",
"app.ts": "app/Resources/js/app.ts",
"audio-player.ts": "app/Resources/js/audio-player.ts",
"charts.ts": "app/Resources/js/charts.ts",
"embed.ts": "app/Resources/js/embed.ts",
"error.ts": "app/Resources/js/error.ts",
"install.ts": "app/Resources/js/install.ts",
"map.ts": "app/Resources/js/map.ts",
"podcast.ts": "app/Resources/js/podcast.ts",
"styles/index.css": "app/Resources/styles/index.css",
},
},
},
plugins: [
VitePWA({
manifest: false,
outDir: "../../public",
}),
],
});