-
Notifications
You must be signed in to change notification settings - Fork 0
/
wxt.config.ts
44 lines (43 loc) · 1.04 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
import { defineConfig } from "wxt";
// import { viteStaticCopy } from "vite-plugin-static-copy";
// See https://wxt.dev/api/config.html
export default defineConfig({
modules: ["@wxt-dev/module-react"],
manifest: {
short_name: "Text Search Pro",
name: "Text Search Pro",
// need storage for set local storage in content script
// need identity for user id
permissions: ["storage"],
action: {
default_title: "Open Text Search Pro",
},
commands: {
"toggle-search": {
suggested_key: {
default: "Alt+F",
},
description: "show search box",
},
},
web_accessible_resources: [
{
resources: ["fonts/**/*"],
matches: ["<all_urls>"],
},
],
host_permissions: ["<all_urls>"],
},
// vite: () => ({
// plugins: [
// viteStaticCopy({
// targets: [
// {
// src: "node_modules/pdfjs-dist/build/pdf.worker.min.mjs",
// dest: ".",
// },
// ],
// }),
// ],
// }),
});