Repository navigation
Expand file tree
/
Copy pathvite.config.ts
More file actions
57 lines (56 loc) · 1.77 KB
/
Copy pathvite.config.ts
File metadata and controls
57 lines (56 loc) · 1.77 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
import { defineConfig, lazyPlugins } from "vite-plus";
import monkey from "vite-plugin-monkey";
export default defineConfig({
fmt: {},
lint: {
jsPlugins: [{ name: "vite-plus", specifier: "vite-plus/oxlint-plugin" }],
rules: { "vite-plus/prefer-vite-plus-imports": "error" },
options: { typeAware: true, typeCheck: true },
},
plugins: lazyPlugins(() => [
monkey({
entry: "src/index.ts",
userscript: {
name: "Codebase Uploader",
namespace: "http://tampermonkey.net/",
version: "1.4.0",
description:
"An elegant, zero-dependency userscript that packages directories and codebases for AI chats. Features smart markdown chunking, customizable ignore patterns, binary file uploads, and a premium Liquid Glass interface.",
author: "quantavil",
license: "GPL-3.0-or-later",
match: [
"*://*.kimi.com/*",
"*://*.qwen.ai/*",
"*://arena.lmsys.org/*",
"*://*.z.ai/*",
"*://chatgpt.com/*",
"*://claude.ai/*",
"*://gemini.google.com/*",
"*://aistudio.google.com/*",
"*://*.deepseek.com/*",
"*://*.perplexity.ai/*",
"*://*.grok.com/*",
"*://chat.mistral.ai/*",
"*://copilot.microsoft.com/*",
"*://huggingface.co/chat/*",
"*://*.groq.com/*",
"*://openrouter.ai/*",
"*://*.meta.ai/*",
"*://*.arena.ai/*",
"*://aistudio.xiaomimimo.com/*",
"*://agent.minimax.io/*",
],
noframes: true,
"run-at": "document-start",
grant: "GM_registerMenuCommand",
},
build: {
fileName: "codebase-uploader.user.js",
},
}),
]),
build: {
minify: false,
target: "es2022",
},
});