forked from niuchaobo/acfun-helper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wxt.config.ts
64 lines (62 loc) · 1.32 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import { defineConfig } from 'wxt';
import vue from '@vitejs/plugin-vue';
// See https://wxt.dev/api/config.html
export default defineConfig({
manifest: {
name: "AcFun-Helper-Bang2",
description: "test ext",
version: "2.1.1",
default_locale: "zh_CN",
author: "ncb",
action: {
"default_title": "AcFun助手",
"default_icon": "icon/icon128.png",
},
omnibox: {
"keyword": "ac"
},
commands: {
},
icons: {
16: 'icon/icon16.png',
32: 'icon/icon32.png',
48: 'icon/icon48.png',
64: 'icon/icon64.png',
128: 'icon/icon128.png',
},
permissions: [
"storage",
"tabs",
"cookies",
"notifications",
"declarativeContent",
"scripting",
"contextMenus",
"declarativeNetRequest", "declarativeNetRequestWithHostAccess", "declarativeNetRequestFeedback"
],
},
imports: {
addons: {
vueTemplate: true,
},
},
entrypointsDir: "./Core/Entry",
publicDir: "./Asset",
srcDir: "./src/",
runner: {
},
vite: () => ({
plugins: [vue({
template: {
compilerOptions: {
// 所有以 mdui- 开头的标签名都是 mdui 组件
isCustomElement: (tag) => tag.startsWith('mdui-')
}
}
})],
resolve: {
alias: {
}
},
}),
});