-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvite.config.js
43 lines (41 loc) · 996 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
32
33
34
35
36
37
38
39
40
41
42
43
import vue from '@vitejs/plugin-vue';
const path = require("path");
export default ({ command }) => ({
resolve: {
alias: {
'/@/': path.resolve(__dirname, './src')
}
},
base: command === 'serve' ? '' : '/build/',
publicDir: 'fake_dir_so_nothing_gets_copied',
build: {
manifest: true,
outDir: 'public/build',
rollupOptions: {
input: 'resources/js/app.ts',
},
},
plugins: [
vue(),
{
name: 'blade',
handleHotUpdate({ file, server }) {
if (file.endsWith('.blade.php')) {
server.ws.send({
type: 'full-reload',
path: '*',
});
}
},
}
],
optimizeDeps: {
include: [
'vue',
'@inertiajs/inertia',
'@inertiajs/inertia-vue3',
'@inertiajs/progress',
'axios'
]
}
});