-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.delivery.config.js
47 lines (45 loc) · 1.53 KB
/
vite.delivery.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
/*
* Author: Raul Perusquia <raul@inikoo.com>
* Created: Thu, 24 Aug 2023 09:33:07 Malaysia Time, Kuala Lumpur, Malaysia
* Copyright (c) 2023, Raul A Perusquia Flores
*/
import {defineConfig} from 'vite';
import laravel from 'laravel-vite-plugin';
import vue from '@vitejs/plugin-vue';
import i18n from 'laravel-vue-i18n/vite';
import inertia from './resources/scripts/vite/inertia-layout';
import {fileURLToPath, URL} from 'node:url';
export default defineConfig(
{
plugins: [
inertia(),
laravel({
hotFile : 'public/delivery.hot',
buildDirectory: 'delivery',
input : 'resources/js/app-delivery.js',
ssr : 'resources/js/ssr-delivery.js',
refresh : true,
}),
vue({
template: {
transformAssetUrls: {
base : null,
includeAbsolute: false,
},
},
}),
i18n(),
],
resolve: {
alias: {
'@fad': fileURLToPath(
new URL('./private/fa/pro-duotone-svg-icons', import.meta.url)),
'@fal': fileURLToPath(
new URL('./private/fa/pro-light-svg-icons', import.meta.url)),
'@far': fileURLToPath(
new URL('./private/fa/pro-regular-svg-icons', import.meta.url)),
'@fas': fileURLToPath(
new URL('./private/fa/pro-solid-svg-icons', import.meta.url)),
},
},
});