-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwxt.config.ts
More file actions
28 lines (27 loc) · 781 Bytes
/
wxt.config.ts
File metadata and controls
28 lines (27 loc) · 781 Bytes
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
import vueJsx from '@vitejs/plugin-vue-jsx'
import { defineConfig } from 'wxt'
import toUtf8 from './plugins/vite-plugin-to-utf8'
// See https://wxt.dev/api/config.html
export default defineConfig({
entrypointsDir: `src`,
modules: [`@wxt-dev/module-vue`, `@wxt-dev/webextension-polyfill`],
manifest: ({ mode }) => ({
name: `公众号阅读增强器`,
icons: {
128: mode === `development` ? `/icon/icon96-gray.png` : `/icon/icon96.png`,
},
permissions: [`storage`, `tabs`],
web_accessible_resources: [
{
resources: [`*.png`, `*.svg`, `*.css`, `*.js`, `wechat-linkifier-injected.js`, `up-to-top.js`],
matches: [`<all_urls>`],
},
],
}),
vite: () => ({
plugins: [
vueJsx(),
toUtf8(),
],
}),
})