-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
33 lines (32 loc) · 878 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
import { defineConfig } from "vite";
import monkey, { cdn } from "vite-plugin-monkey";
import { name } from "./package.json";
export default defineConfig({
plugins: [
monkey({
entry: "src/index.ts",
build: {
metaFileName: true,
},
userscript: {
name: "GitHub Feed Back",
icon: "https://github.githubassets.com/favicons/favicon.svg",
namespace: "https://github.com/Sec-ant",
match: [
"https://github.com/",
"https://github.com/?*",
"https://github.com/dashboard*",
],
downloadURL: cdn.npmmirror(undefined, `dist/${name}.user.js`)[1](
"latest",
name,
),
updateURL: cdn.npmmirror(undefined, `dist/${name}.meta.js`)[1](
"latest",
name,
),
"run-at": "document-start",
},
}),
],
});