mirror of
https://github.com/doocs/md.git
synced 2025-01-22 20:04:39 +08:00
38 lines
791 B
TypeScript
38 lines
791 B
TypeScript
import { defineConfig } from 'wxt'
|
|
import ViteConfig from './vite.config'
|
|
|
|
export default defineConfig({
|
|
srcDir: `src`,
|
|
publicDir: `../public`,
|
|
extensionApi: `chrome`,
|
|
manifest: {
|
|
name: `公众号文章编辑器`,
|
|
version: `0.0.6`,
|
|
icons: {
|
|
256: `/mpmd/icon-256.png`,
|
|
},
|
|
permissions: [`storage`],
|
|
host_permissions: [
|
|
`https://*.github.com/*`,
|
|
`https://*.githubusercontent.com/*`,
|
|
`https://*.gitee.com/*`,
|
|
`https://*.weixin.qq.com/*`,
|
|
// 微信公众号图片
|
|
`https://*.qpic.cn/*`,
|
|
],
|
|
web_accessible_resources: [
|
|
{
|
|
resources: [`*.png`, `*.svg`],
|
|
matches: [`<all_urls>`],
|
|
},
|
|
],
|
|
},
|
|
analysis: {
|
|
open: true,
|
|
},
|
|
vite: () => ({
|
|
...ViteConfig,
|
|
base: `/`,
|
|
}),
|
|
})
|