-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
37 lines (36 loc) · 896 Bytes
/
vite.config.ts
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
import { resolve } from 'path'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { webUpdateNotice } from '@plugin-web-update-notification/vite'
// https://vite.dev/config/
export default defineConfig({
plugins: [vue(),
webUpdateNotice({
versionType: "build_timestamp",
logVersion: true,
locale: "zh_CN",
notificationProps: {
title: '📢 系统更新',
description: '系统更新啦, 请刷新页面',
buttonText: '刷新',
dismissButtonText: '忽略'
},
})
],
resolve:{
alias:{
'@': resolve(__dirname,'src/'),
'components': resolve(__dirname,'src/components/'),
'utils': resolve(__dirname,'src/utils/'),
'api': resolve(__dirname,'src/api/'),
}
},
build: {
outDir: 'docs'
},
server: {
port: 5173,
open: true,
host: '0.0.0.0'
}
})