-
-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathvite.config.mts
More file actions
50 lines (49 loc) · 1.62 KB
/
Copy pathvite.config.mts
File metadata and controls
50 lines (49 loc) · 1.62 KB
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
50
import tailwindcss from '@tailwindcss/vite';
import vue from '@vitejs/plugin-vue';
import laravel from 'laravel-vite-plugin';
import i18n from 'laravel-vue-i18n/vite';
import { resolve } from 'path';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [
tailwindcss(),
laravel({
input: [
'resources/js/app.js',
'resources/sass/app.scss',
'resources/sass/app-dark.scss',
'resources/js/admin.js',
'resources/sass/admin.scss',
'resources/css/welcome.css',
'resources/js/year-in-review.js',
'resources/tailwind-app/app.ts',
'resources/admin-app/app.ts',
'resources/css/trwl-theme.css',
'resources/css/tailwind-app.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
{ find: 'vue', replacement: 'vue/dist/vue.esm-bundler.js' },
{ find: /^daisyui$/, replacement: resolve('./node_modules/daisyui/index.js') },
],
},
build: {
sourcemap: true,
},
});