-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvite.config.ts
45 lines (44 loc) · 1.03 KB
/
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
38
39
40
41
42
43
44
45
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import { resolve } from "path";
import { webUpdateNotice } from "@plugin-web-update-notification/vite";
// https://vitejs.dev/config/
export default defineConfig({
base: '/websites/',
build: {
outDir: "docs"
},
plugins: [
vue(),
webUpdateNotice({
versionType: "build_timestamp",
checkInterval: 1000,
checkOnWindowFocus: true,
locale: "zh_CN",
localeData: {
en_US: {
title: "📢 system update",
description: "System update, please refresh the page",
buttonText: "refresh",
dismissButtonText: "dismiss",
},
zh_CN: {
title: "📢 系统更新",
description: "有新版本发布, 请刷新页面",
buttonText: "好的",
dismissButtonText: "取消",
}
}
})
],
resolve:{
alias:{
'@': resolve(__dirname,'./src')
}
},
server: {
host: "0.0.0.0",
port: 5173,
open: true
}
})