md/wxt.config.ts
YangFong 741322d69e
All checks were successful
Build and Deploy / build-and-deploy (push) Has been skipped
Build and Push Docker Images / build (push) Has been skipped
chore: update layout (#493)
* chore: update layout

* fix: package

* style: adjust layout

* style: enhance layout and border styling in CodemirrorEditor.vue

* style: improve transition effects for PostSlider and RightSlider by a hack way

* style: refine border and footer layout

* style: update icon

* style: set select-none

* chore: remove overflow property

* style: reset code block theme

* chore: rename `文章` to `内容`

---------

Co-authored-by: dribble-njr <wzw15292257101@163.com>
Co-authored-by: yanglbme <szuyanglb@outlook.com>
2025-01-10 08:31:33 +08:00

39 lines
981 B
TypeScript

import { defineConfig } from 'wxt'
import ViteConfig from './vite.config'
export default defineConfig({
srcDir: `src`,
publicDir: `../public`,
extensionApi: `chrome`,
manifest: {
name: `公众号内容编辑器`,
description: `一款高度简洁的微信 Markdown 编辑器:支持 Markdown 语法、色盘取色、多图上传、一键下载文档、自定义 CSS 样式、一键重置等特性`,
version: `0.0.7`,
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: `/`,
}),
})