-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.mjs
48 lines (46 loc) · 1.11 KB
/
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
44
45
46
47
48
import { defineConfig } from 'vite';
import { fileURLToPath, URL } from 'node:url';
import mkcert from 'vite-plugin-mkcert';
import vuePlugin from '@vitejs/plugin-vue';
import dns from 'dns';
dns.setDefaultResultOrder('verbatim');
export default defineConfig({
plugins: [
mkcert(),
vuePlugin(),
],
base: '/build',
build: {
outDir: 'public/build',
rollupOptions: {
input: {
public: './public/js/src/public.js',
editor: './public/js/src/editor.js',
},
},
sourcemap: true,
copyPublicDir: false,
assetsInlineLimit: 0,
manifest: true,
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./public/js/src', import.meta.url)),
},
},
css: {
devSourcemap: true,
},
server: {
host: true,
port: 9028,
origin: 'https://localhost:9028',
strictPort: true,
https: true,
watch: {
ignored: ['**/vendor/**', '**/var/**'],
},
},
appType: 'custom',
clearScreen: false,
});