-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvite.config.js
33 lines (32 loc) · 918 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
import { defineConfig } from "vite";
import laravel from "laravel-vite-plugin";
import vue from "@vitejs/plugin-vue";
import Vuetify, { transformAssetUrls } from "vite-plugin-vuetify";
import { fileURLToPath, URL } from "node:url";
import eslint from "vite-plugin-eslint";
export default defineConfig({
plugins: [
laravel({
input: ["resources/js/src/main.js"],
refresh: true,
}),
vue({
template: {
base: null,
includeAbsolute: false,
transformAssetUrls,
},
}),
Vuetify(),
eslint({
cache: true,
failOnWarning: true,
}),
],
resolve: {
alias: {
"@": fileURLToPath(new URL("./resources/js/src", import.meta.url)),
},
extensions: [".js", ".json", ".jsx", ".mjs", ".ts", ".tsx", ".vue"],
},
});