-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvite.config.js
37 lines (36 loc) · 962 Bytes
/
vite.config.js
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
36
37
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
const { resolve } = require("path");
export default defineConfig({
plugins: [vue()],
root: "resources",
base: `/dist/`,
resolve: {
// Set the '@' alias so Vite can find the Breeze component imports.
alias: {
"@": "/js",
},
// Need to add the ".vue" extension. This is not recommended by Vite
// (https://vitejs.dev/config/#resolve-extensions) but necessary until
// the Breeze component imports are updated with .vue.
extensions: [".vue", ".js", ".json", ".jsx", ".ts", ".tsx"],
},
build: {
sourcemap: true,
outDir: resolve(__dirname, "public/dist"),
emptyOutDir: true,
manifest: true,
rollupOptions: {
input: "./resources/js/app.js",
},
},
optimizeDeps: {
include: [
"vue",
"@inertiajs/inertia",
"@inertiajs/inertia-vue3",
"@inertiajs/progress",
"axios",
],
},
});