-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
vite.config.mjs
43 lines (42 loc) · 1009 Bytes
/
vite.config.mjs
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 { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
export default defineConfig({
envDir: './../../../',
build: {
rollupOptions: {
output: {
manualChunks: () => 'app',
},
},
},
server: {
https: true,
host: '127.0.0.1',
hmr: {
host: '127.0.0.1',
},
},
plugins: [
laravel({
input: [
'resources/js/app.js',
'resources/js/editor.js',
'resources/js/media-manager.js',
'resources/js/repeater.js',
'resources/js/dropdown.js',
'resources/js/table.js',
'resources/js/chart.js',
'resources/sass/app.scss',
],
refresh: true,
}),
],
resolve: {
alias: [
{
find: /^~(.*)$/,
replacement: '$1',
},
],
},
});