-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwxt.config.ts
More file actions
43 lines (41 loc) · 885 Bytes
/
wxt.config.ts
File metadata and controls
43 lines (41 loc) · 885 Bytes
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 { defineConfig } from "wxt";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const perBrowserManifest: Record<string, any> = {
chrome: {
permissions: ["storage", "identity", "activeTab"],
},
firefox: {
permissions: [
"storage",
"identity",
"activeTab",
"https://api.annict.com/graphql",
"https://animestore.docomo.ne.jp/*",
],
browser_specific_settings: {
gecko: {
id: "{32acf05e-234c-4a49-98ca-47c15d23a51f}",
strict_min_version: "115.0",
},
},
},
};
export default defineConfig({
modules: ["@wxt-dev/module-solid", "@wxt-dev/auto-icons"],
manifest: ({ browser }) => ({
name: "d-Record",
...perBrowserManifest[browser],
}),
zip: {
excludeSources: ["README.md"],
},
autoIcons: {
enabled: true,
grayscaleOnDevelopment: true,
},
// vite: () => ({
// build: {
// minify: false,
// },
// }),
});