-
Notifications
You must be signed in to change notification settings - Fork 3
/
vite.config.js
40 lines (38 loc) · 1 KB
/
vite.config.js
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
import { defineConfig } from 'vite'
import Monkey, { cdn } from 'vite-plugin-monkey';
import vue from "@vitejs/plugin-vue";
export default defineConfig((config) => {
return {
plugins: [
vue(),
Monkey({
entry: "src/index.js",
userscript: {
name: "GitHub讨论米游社表情包",
match: [
"https://github.com/*",
"https://github.com",
],
connect: [
"bbs-api-static.miyoushe.com",
"bbs-static.miyoushe.com",
"upload-bbs.miyoushe.com",
"img-static.mihoyo.com",
"upload-bbs.mihoyo.com"
],
icon: "https://www.google.com/s2/favicons?sz=64&domain=github.com",
namespace: "https://dave-12138.cn/Tampermonkey",
},
build: {
metaFileName: true,
externalGlobals: {
vue: cdn.zhimg('Vue', 'dist/vue.global.prod.js'),
},
}
})
],
build: {
// minify: true
}
}
})