-
Notifications
You must be signed in to change notification settings - Fork 19
/
wxt.config.ts
34 lines (33 loc) · 941 Bytes
/
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
import react from '@vitejs/plugin-react'
import UnoCSS from 'unocss/vite'
import { defineConfig } from 'wxt'
// See https://wxt.dev/api/config.html
export default defineConfig({
vite: () => ({
plugins: [react(), UnoCSS()],
}),
manifest: {
description: 'one step to get css from figma',
web_accessible_resources: [
{
resources: ['/injected.js', '/assets/injected.css'],
matches: ['https://figma.com/*', 'https://www.figma.com/*'],
},
{
resources: ['/figma.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',
},
],
},
},
})