-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwxt.config.ts
More file actions
47 lines (41 loc) · 1.04 KB
/
Copy pathwxt.config.ts
File metadata and controls
47 lines (41 loc) · 1.04 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
import { defineConfig } from 'wxt';
// See https://wxt.dev/api/config.html
export default defineConfig({
vite: () => ({
build: {
sourcemap: true,
},
}),
manifest: ({ browser }) => ({
name: 'Omni Copy',
version: '1.0.1',
description:
'The ultimate selection tool. Auto-copy on select or via a floating button, with full control over where — your clipboard, your rules',
...(browser === 'firefox' && {
permissions: ['storage', 'clipboardWrite'],
browser_specific_settings: {
gecko: {
id: 'omni-copy@local.dev',
data_collection_permissions: {
required: ['none'],
},
},
},
}),
...(browser === 'chrome' && {
permissions: ['storage', 'clipboardWrite', 'offscreen'],
}),
host_permissions: ['*://*/*'],
icons: {
'16': 'icon-16.png',
'48': 'icon-48.png',
'128': 'icon-128.png',
},
action: {
default_icon: {
'19': 'icon-19.png',
'38': 'icon-38.png',
},
},
}),
});