-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
61 lines (60 loc) · 1.84 KB
/
vite.config.js
File metadata and controls
61 lines (60 loc) · 1.84 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
51
52
53
54
55
56
57
58
59
60
61
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import vue from '@vitejs/plugin-vue';
export default defineConfig({
plugins: [
vue({
template: {
transformAssetUrls: {
base: null,
includeAbsolute: false,
},
compilerOptions: {
isCustomElement: (tag) => [
'swiper-container',
'swiper-slide',
].includes(tag),
},
},
}),
laravel({
buildDirectory: '/build/app/',
input: {
chery: 'resources/app/js/landings/chery/app.js',
jaecoo: 'resources/app/js/landings/jaecoo/app.js',
citroen: 'resources/app/js/landings/citroen/app.js',
peugeot: 'resources/app/js/landings/peugeot/app.js',
'gac-01': 'resources/app/js/landings/gac/01/app.js',
'gac-verra': 'resources/app/js/landings/gac/verra/app.js',
'moskvich-keyauto': 'resources/app/js/landings/moskvich/keyauto/app.js',
app: 'resources/app/js/app.js',
},
refresh: true,
}),
],
resolve: {
alias: {
'@': '/resources/app/js',
vue: 'vue/dist/vue.esm-bundler.js',
},
},
build: {
rollupOptions: {
input: {
chery: 'resources/app/js/landings/chery/app.js',
jaecoo: 'resources/app/js/landings/jaecoo/app.js',
citroen: 'resources/app/js/landings/citroen/app.js',
peugeot: 'resources/app/js/landings/peugeot/app.js',
'gac-01': 'resources/app/js/landings/gac/01/app.js',
'gac-verra': 'resources/app/js/landings/gac/verra/app.js',
'moskvich-keyauto': 'resources/app/js/landings/moskvich/keyauto/app.js',
app: 'resources/app/js/app.js',
},
output: {
entryFileNames: '[name].js',
chunkFileNames: 'chunk/[name].js',
assetFileNames: 'assets/[name].[ext]',
},
},
},
});