Repository navigation
Expand file tree
/
Copy pathwxt.config.ts
More file actions
84 lines (73 loc) · 1.88 KB
/
Copy pathwxt.config.ts
File metadata and controls
84 lines (73 loc) · 1.88 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import { defineConfig } from 'wxt'
function toArray<T> (value: T | T[]): T[] {
return Array.isArray(value)
? value
: [value]
}
function resource (url: string | string[], resources: string | string[]) {
return {
matches: toArray(url),
resources: toArray(resources),
}
}
// See https://wxt.dev/api/config.html
const hostPermissions = [
'https://workflowy.com/*',
'https://*.workflowy.com/*',
]
export default defineConfig({
modules: ['@wxt-dev/module-vue'],
// folders
srcDir: 'src',
outDir: 'dist',
// manifest
manifest: {
name: 'WorkFlowy MultiFlow',
description : "Multi-column view for WorkFlowy",
version: '3.2.0',
// @ts-ignore
key: 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoWDu35r1oWfV8YVlJbXNOpqL3lhgO4wgyb7dfAcl6trIfwsQSg2W3EERJDbN3LzhYEmvszbrQlot+scVpK9WM94HbXag8IBEIiIh24WmX6xlv5PT3j2ibccXiJ9x/sCaP2MGRzPNkkO1hJjBIup6ogn3/U3ynbQ6lqdtYI9Ju0IWSNXIt493Ch/dvD1cjxPzLLcCcrU9O50evAm/gFknFiPla6UKqU6ApkUpnwO3L3emphEXtKcK1I/VfzCFDJ/7PUnOKVBiLwbQWZjSfhdLtdzdwovGgklr4XmicpEL//k5HO9zTjXd8eEL6Yo0ik1Kk/Skm9226B9rQnL6Od9WgwIDAQAB',
permissions: [
'declarativeNetRequest',
'declarativeContent',
'activeTab',
'storage',
],
host_permissions: hostPermissions,
declarative_net_request: {
rule_resources: [{
id: 'ruleset',
enabled: true,
path: 'rules.json',
}],
},
web_accessible_resources: [
resource('<all_urls>', 'icon/16.png'),
resource(hostPermissions, [
'scripts/installed.js',
'scripts/links.js',
]),
],
},
// build
alias: {
'@utils': './src/utils',
'@composables': './src/composables',
},
runner: {
disabled: true,
binaries: {
chrome: '/Applications/Google Chrome.app',
},
},
imports: {
addons: {
vueTemplate: true,
},
},
dev: {
server: {
port: 3010,
},
},
})