-
Notifications
You must be signed in to change notification settings - Fork 47
/
vite.config.mts
42 lines (41 loc) · 1.21 KB
/
vite.config.mts
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
import laravel from "laravel-vite-plugin";
import vue from "@vitejs/plugin-vue";
import i18n from 'laravel-vue-i18n/vite';
import {defineConfig} from "vite";
export default defineConfig({
plugins: [
laravel({
input: [
"resources/js/app.js",
"resources/js/stats.js",
"resources/sass/app.scss",
"resources/sass/app-dark.scss",
"resources/js/admin.js",
"resources/sass/admin.scss",
"resources/css/welcome.css",
],
refresh: true,
}),
// Required Vue config for Laravel
// See https://laravel.com/docs/10.x/vite#vue
vue({
template: {
transformAssetUrls: {
base: null,
includeAbsolute: false,
},
},
}),
i18n()
],
resolve: {
alias: {
// we need the runtime template compiler for the notification bell
// we might want to migrate that, so we don't need to bundle the compiler at runtime
"vue": "vue/dist/vue.esm-bundler.js"
},
},
build: {
sourcemap: true,
}
})