forked from niuchaobo/acfun-helper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwxt.config.ts
85 lines (83 loc) · 1.76 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import { defineConfig } from 'wxt';
import vue from '@vitejs/plugin-vue';
import inject from '@rollup/plugin-inject';
// See https://wxt.dev/api/config.html
export default defineConfig({
manifest: {
name: "AcFun-Helper",
description: "AcFun-Helper",
version: "2.0.21",
default_locale: "zh_CN",
author: { "email": "[email protected]" },
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","alarms",
"tabs",
"cookies",
"notifications",
"declarativeContent",
"scripting",
"contextMenus",
"declarativeNetRequest", "declarativeNetRequestWithHostAccess", "declarativeNetRequestFeedback"
],
},
imports: {
addons: {
vueTemplate: true,
},
},
entrypointsDir: "./Core/Entry",
publicDir: "./Asset",
modulesDir: "./WxtModules",
srcDir: "./src/",
runner: {
},
vite: () => ({
plugins: [
vue({
template: {
compilerOptions: {
// 所有以 mdui- 开头的标签名都是 mdui 组件
isCustomElement: (tag) => tag.startsWith('mdui-')
}
}
}),
inject({
jQuery: 'jquery',
}),
],
resolve: {
alias: {
}
},
optimizeDeps: {
include: ["jquery"],
},
css: {
preprocessorOptions: {
"scss": {
api: "modern-compiler",
},
"sass": {
includePaths: ["./src/"],
api: "modern-compiler",
},
}
}
}),
});