forked from nasirkhan/laravel-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
47 lines (42 loc) · 1.24 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
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
// const path = require('path')
import path from 'path'
// import react from '@vitejs/plugin-react';
// import vue from '@vitejs/plugin-vue';
export default defineConfig({
plugins: [
laravel({
input: [
'resources/css/app-frontend.css',
'resources/js/app-frontend.js',
'resources/sass/app-backend.scss',
'resources/js/app-backend.js',
],
refresh: [
'app/View/Components/**',
'lang/**',
'resources/lang/**',
'resources/views/**',
'resources/routes/**',
'routes/**',
'Modules/**/Resources/lang/**',
'Modules/**/Resources/views/**/*.blade.php',
],
}),
// react(),
// vue({
// template: {
// transformAssetUrls: {
// base: null,
// includeAbsolute: false,
// },
// },
// }),
],
resolve: {
alias: {
'~coreui': path.resolve(__dirname, 'node_modules/@coreui/coreui'),
}
},
});