-
Notifications
You must be signed in to change notification settings - Fork 2
/
vite.config.js
34 lines (33 loc) · 1.01 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
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import path from 'path'
export default defineConfig({
plugins: [
laravel({
input: [
// frontend
"resources/assets/css/app-frontend.scss",
"resources/assets/js/app-frontend.js",
// backend
"resources/assets/css/app-backend.scss",
"resources/assets/js/app-backend.js",
],
refresh: [
"app/View/Components/**",
"lang/**",
"resources/lang/**",
"resources/views/**",
"resources/routes/**",
"routes/**",
"modules/**/lang/**",
"modules/**/Resources/views/**/*.blade.php",
],
}),
],
resolve: {
alias: {
"~node_modules": path.resolve(__dirname, "node_modules"),
"~vendor": path.resolve(__dirname, "vendor"),
},
},
});