-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwxt.config.ts
More file actions
55 lines (53 loc) · 1.5 KB
/
Copy pathwxt.config.ts
File metadata and controls
55 lines (53 loc) · 1.5 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
import tailwindcss from '@tailwindcss/vite'
import { defineConfig } from 'wxt'
import { mkdirSync, existsSync } from 'node:fs'
import { resolve } from 'node:path'
const chromeProfile = '.wxt/chrome-data'
mkdirSync(chromeProfile, { recursive: true })
export default defineConfig({
srcDir: 'src',
modules: ['@wxt-dev/module-react'],
webExt: {
chromiumProfile: chromeProfile,
keepProfileChanges: true,
chromiumArgs: ['--hide-crash-restore-bubble'],
},
vite: () => ({
plugins: [tailwindcss()],
resolve: {
alias: {
// Private product notes (gitignored). Falls back to the OSS example catalogue.
'@/lib/product-catalog': existsSync(resolve('local/product-catalog.ts'))
? resolve('local/product-catalog.ts')
: resolve('src/lib/product-catalog.ts'),
},
},
define: {
__VERSION__: JSON.stringify('0.3.1'),
},
build: {
minify: false,
chunkSizeWarningLimit: 2000,
},
}),
zip: {
artifactTemplate: 'x-reply-plugin-{{version}}-{{browser}}.zip',
},
manifest: {
name: 'X Reply',
description: 'Read an X or Reddit discussion, draft a value-first reply and an optional product-link reply, then fill the version you choose. Bring your own text API provider.',
permissions: ['tabs', 'sidePanel', 'storage', 'activeTab', 'scripting'],
host_permissions: ['<all_urls>'],
icons: {
16: 'assets/icon-16.png',
48: 'assets/icon-48.png',
128: 'assets/icon-128.png',
},
action: {
default_title: 'X Reply',
},
side_panel: {
default_path: 'sidepanel/index.html',
},
},
})