-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvite.config.js
31 lines (28 loc) · 876 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 vue from '@vitejs/plugin-vue';
import { fileURLToPath, URL } from 'url';
export default defineConfig({
plugins: [
laravel({
input: ['resources/css/app.css', 'resources/js/app.ts'],
refresh: true,
}),
vue(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)) // Correctly resolve file paths
}
},
// server: {
// proxy: {
// // Proxy Web Worker requests to your backend at port 8000
// '/worker': {
// target: 'http://127.0.0.1:8000', // Your Laravel backend
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/worker/, '/js') // Rewrite if needed
// }
// }
// }
});