-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwxt.config.ts
62 lines (61 loc) · 1.31 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
import {defineConfig} from "wxt";
import vue from '@vitejs/plugin-vue';
import AutoImport from 'unplugin-auto-import/vite';
import Components from 'unplugin-vue-components/vite';
import {ElementPlusResolver} from "unplugin-vue-components/resolvers";
import htmlMinifier from 'vite-plugin-html-minifier';
// noinspection JSUnusedGlobalSymbols
export default defineConfig({
srcDir: 'src',
publicDir: 'public',
entrypointsDir: 'entries',
browser: 'chrome',
manifest: {
name: "园丁鸟",
minimum_chrome_version: "120",
version: "0.0.0.0",
version_name: "0.0.0",
description: "描述写的不错。",
icons: {
"128": "./icons/icon.png"
},
author: "NXYBW",
host_permissions: [
"<all_urls>"
],
permissions: [
"contextMenus",
"storage",
"tabs",
"offscreen",
"scripting",
"userScripts",
"activeTab",
"unlimitedStorage",
"declarativeNetRequest",
"declarativeNetRequestFeedback",
]
},
alias: {
"&": "src",
"@": "src/entries",
"@OPT": "src/entries/options",
"@POP": "src/entries/popup",
"@OFF": "src/entries/offscreen",
},
vite: () => ({
plugins: [
vue(),
AutoImport({
resolvers: [ElementPlusResolver()]
}),
Components({
resolvers: [ElementPlusResolver()]
}),
htmlMinifier()
],
build: {
target: ['chrome120', 'edge120'],
}
}),
});