-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwxt.config.ts
More file actions
56 lines (51 loc) · 1.28 KB
/
wxt.config.ts
File metadata and controls
56 lines (51 loc) · 1.28 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
import path, { dirname, join } from 'node:path'
import { fileURLToPath } from 'node:url'
import vueJsx from '@vitejs/plugin-vue-jsx'
import { defineConfig } from 'wxt'
const projectRoot = dirname(fileURLToPath(import.meta.url))
// See https://wxt.dev/api/config.html
const isCustomElement = (x: string) => x.startsWith('x-')
const projectPath = (path: string) => join(projectRoot, path)
export default defineConfig({
extensionApi: 'chrome',
modules: [
'@wxt-dev/module-vue',
'@wxt-dev/i18n/module',
'@wxt-dev/auto-icons',
],
vite: () => ({
plugins: [
vueJsx({ transformOn: true, mergeProps: true, enableObjectSlots: true, isCustomElement, defineComponentName: ['defineComponent', 'createComponent'] }),
],
resolve: {
alias: {
'@': projectPath('/'),
},
},
}),
runner: {
disabled: true,
},
manifest: {
side_panel: {
default_path: 'entrypoints/sidepanel/index.html',
default_width: 800,
},
default_locale: 'en',
action: {},
name: '__MSG_name__',
description: '__MSG_description__',
version: '0.0.5',
permissions: [
'sidePanel',
'storage',
'debugger',
'activeTab',
'tabs',
'downloads',
],
},
autoIcons: {
grayscaleOnDevelopment: false,
},
})