-
Notifications
You must be signed in to change notification settings - Fork 11
/
vite.config.ts
36 lines (35 loc) · 912 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
import { resolve } from "path";
import { defineConfig } from "vite";
import monkey from "vite-plugin-monkey";
import pkg from "./package.json";
export default defineConfig({
resolve: {
alias: {
src: resolve(__dirname, "./src"),
},
},
plugins: [
monkey({
entry: "src/main.ts",
build: {
fileName: "joybook.user.js",
},
userscript: {
version: pkg.version,
name: "bilibili-joybook",
description: "共享大会员",
author: "PC6live",
namespace: "https://github.com/PC6live/bilibili-joybook-tampermonkey",
match: "*://*.bilibili.com/*",
exclude: "*://passport.bilibili.com/*",
homepage: "https://github.com/PC6live/bilibili-joybook-tampermonkey",
supportURL:
"https://github.com/PC6live/bilibili-joybook-tampermonkey/issues",
license: "MIT",
"run-at": "document-start",
noframes: true,
connect: "bilibili.com",
},
}),
],
});