-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.dev.js
More file actions
23 lines (21 loc) · 561 Bytes
/
vite.dev.js
File metadata and controls
23 lines (21 loc) · 561 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import { resolve, dirname } from 'path';
import { fileURLToPath } from 'url';
const __dirname = dirname(fileURLToPath(import.meta.url));
// Development configuration for serving the UI with hot reload
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
root: './src/ui/reader',
resolve: {
alias: {
'@': resolve(__dirname, './src'),
'@assets': resolve(__dirname, './assets')
}
},
server: {
port: 8080,
open: true
}
});