-
Notifications
You must be signed in to change notification settings - Fork 386
/
vite.config.js
60 lines (58 loc) · 1.75 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
50
51
52
53
54
55
56
57
58
59
60
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import vue from '@vitejs/plugin-vue2';
import { viteStaticCopy } from 'vite-plugin-static-copy';
export default defineConfig({
plugins: [
laravel({
input: [
'resources/sass/main.scss',
'resources/sass/pages/_auth.scss',
'resources/sass/themes/_cosmic-void.scss',
'resources/sass/themes/_dark-blue.scss',
'resources/sass/themes/_dark-green.scss',
'resources/sass/themes/_dark-pink.scss',
'resources/sass/themes/_dark-purple.scss',
'resources/sass/themes/_dark-red.scss',
'resources/sass/themes/_dark-teal.scss',
'resources/sass/themes/_dark-yellow.scss',
'resources/sass/themes/_galactic.scss',
'resources/sass/themes/_light.scss',
'resources/sass/themes/_material-design-v3-amoled.scss',
'resources/sass/themes/_material-design-v3-dark.scss',
'resources/sass/themes/_material-design-v3-light.scss',
'resources/sass/themes/_nord.scss',
'resources/sass/themes/_revel.scss',
'resources/js/app.js',
'resources/js/unit3d/chat.js',
'resources/js/vendor/chart.js',
],
refresh: true,
}),
viteStaticCopy({
targets: [{
src: [
'resources/js/unit3d/tmdb.js',
'resources/js/unit3d/parser.js',
'resources/js/unit3d/helper.js',
'resources/js/vendor/imgbb.js',
'resources/js/vendor/virtual-select.js',
],
dest: 'unit3d'
}]
}),
vue({
template: {
transformAssetUrls: {
base: null,
includeAbsolute: false,
},
},
}),
],
resolve: {
alias: {
vue: 'vue/dist/vue.esm.js',
}
}
});