-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.config.ts
43 lines (39 loc) · 1.1 KB
/
manifest.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
import { defineManifest } from "@crxjs/vite-plugin"
import packageJson from "./package.json"
const { version } = packageJson
const name = "ChatGPT Sugar: Make Your ChatGPT Sweeter"
const description =
"A collection of subtle and delightful tools, seamlessly integrated into your ChatGPT experience."
export default defineManifest(async (env) => {
return {
...{
manifest_version: 3,
name: env.mode !== "production" ? `[DEV] ${name}` : name,
description,
version,
icons: {
"16": "src/assets/logo.png",
"32": "src/assets/logo.png",
"48": "src/assets/logo.png",
"128": "src/assets/logo.png"
},
action: {},
host_permissions: ["https://chatgpt.com/"],
permissions: [],
content_scripts: [
{
matches: ["https://chatgpt.com/*"],
js: ["src/content-script/index.tsx"]
}
]
},
...(process.env.BROWSER === "firefox" && {
browser_specific_settings: {
gecko: {
id: "[email protected]",
strict_min_version: "58.0"
}
}
})
}
})