-
Notifications
You must be signed in to change notification settings - Fork 3
/
vite.config.js
49 lines (48 loc) · 1.18 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
import { defineConfig } from "vite";
import laravel from "laravel-vite-plugin";
import vue from "@vitejs/plugin-vue";
import Components from "unplugin-vue-components/vite";
import AutoImport from "unplugin-auto-import/vite";
export default defineConfig({
resolve: {
alias: {
"@": "/resources/js",
},
},
server: {
host: "0.0.0.0",
hmr: {
host: "localhost",
},
},
plugins: [
laravel({
input: ["resources/js/app.js", "resources/css/app.css"],
refresh: true,
}),
vue({
template: {
transformAssetUrls: {
base: null,
includeAbsolute: false,
},
},
}),
AutoImport({
dirs: ["./resources/js/composables"],
dts: "./resources/js/types/auto-imports.d.ts",
directoryAsNamespace: true,
}),
Components({
dirs: ["./resources/js/components", "./resources/js/layouts"],
dts: "./resources/js/types/components.d.ts",
directoryAsNamespace: true,
}),
],
define: {
__PACKAGE_NAME__: JSON.stringify(process.env.npm_package_name),
__PACKAGE_REPOSITORY_URL__: JSON.stringify(
"https://github.com/fsr5-fhaachen/strichlistensystem/"
),
},
});