-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwxt.config.ts
51 lines (49 loc) · 1.29 KB
/
wxt.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
44
45
46
47
48
49
50
51
import { WxtViteConfig, defineConfig } from "wxt";
import react from "@vitejs/plugin-react";
import toUtf8 from "./scripts/vite-plugin-to-utf8";
// See https://wxt.dev/api/config.html
export default defineConfig({
vite: (env) => {
// const contentJsPath = `.output/${env.browser}-mv${env.manifestVersion}/content-scripts`;
return {
plugins: [toUtf8(), react()],
legacy: {
skipWebSocketTokenCheck: true,
},
} as WxtViteConfig;
},
manifest: {
short_name: "markdown-sticky-notes",
name: "Markdown Sticky Notes",
icons: {
"16": "icon/notes16.png",
"32": "icon/notes32.png",
"64": "icon/notes64.png",
"128": "icon/notes128.png",
},
commands: {
"create-note": {
suggested_key: {
default: "Alt+M",
},
description: 'Run "create-note" on the current page.',
},
},
// this must be hrer in order to have action clicked listeners
action: {},
permissions: ["storage"],
// optional_permissions: ["unlimitedStorage"],
host_permissions: ["<all_urls>"],
web_accessible_resources: [
{
resources: ["fonts/**/*"],
matches: ["*://*/*"],
},
],
browser_specific_settings: {
gecko: {
},
},
},
});