-
Notifications
You must be signed in to change notification settings - Fork 6
/
wxt.config.ts
43 lines (42 loc) · 1 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
import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js'
import { defineConfig } from 'wxt'
export default defineConfig({
modules: ['@wxt-dev/module-vue'],
vite: () => ({
plugins: [cssInjectedByJsPlugin()],
optimizeDeps: {
include: []
}
}),
runner: {
disabled: true
},
manifest: {
name: 'TemPad Dev',
web_accessible_resources: [
{
resources: ['/ui.js'],
matches: ['https://www.figma.com/*']
},
{
resources: ['/figma.js'],
matches: ['https://www.figma.com/*']
},
{
resources: ['/codegen.js'],
matches: ['https://www.figma.com/*']
}
],
permissions: ['declarativeNetRequest', 'declarativeNetRequestWithHostAccess'],
host_permissions: ['https://www.figma.com/file/*', 'https://www.figma.com/design/*'],
declarative_net_request: {
rule_resources: [
{
id: 'figma',
enabled: true,
path: 'rules/figma.json'
}
]
}
}
})