-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathvite.config.js
31 lines (29 loc) · 901 Bytes
/
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
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
// import react from '@vitejs/plugin-react';
// import vue from '@vitejs/plugin-vue';
export default defineConfig({
plugins: [
laravel([
'resources/css/frontend/app.css',
'resources/css/backend/app.css',
'resources/js/frontend/app.js',
'resources/js/backend/app.js',
]),
// react(),
// vue({
// template: {
// transformAssetUrls: {
// base: null,
// includeAbsolute: false,
// },
// },
// }),
],
// resolve @ (added by vijay goswami https://github.com/laravel/vite-plugin/blob/main/UPGRADE.md#migrating-from-laravel-mix-to-vite)
resolve: {
alias: {
'@': '/resources/js/frontend'
}
}
});