{"id":16612125,"url":"https://github.com/zcf0508/unplugin-dingtalk","last_synced_at":"2026-03-11T11:29:44.225Z","repository":{"id":241039813,"uuid":"804142736","full_name":"zcf0508/unplugin-dingtalk","owner":"zcf0508","description":"一键启动钉钉内调试。","archived":false,"fork":false,"pushed_at":"2025-12-26T09:24:42.000Z","size":990,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-27T21:56:01.046Z","etag":null,"topics":["rebuild","vite","vuecli"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zcf0508.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["antfu"],"ko_fi":"huali58081","custom":["https://afdian.com/a/huali08"]}},"created_at":"2024-05-22T03:19:15.000Z","updated_at":"2025-12-26T09:24:44.000Z","dependencies_parsed_at":"2025-12-26T12:02:03.988Z","dependency_job_id":null,"html_url":"https://github.com/zcf0508/unplugin-dingtalk","commit_stats":null,"previous_names":["zcf0508/unplugin-dingtalk"],"tags_count":35,"template":false,"template_full_name":null,"purl":"pkg:github/zcf0508/unplugin-dingtalk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcf0508%2Funplugin-dingtalk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcf0508%2Funplugin-dingtalk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcf0508%2Funplugin-dingtalk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcf0508%2Funplugin-dingtalk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zcf0508","download_url":"https://codeload.github.com/zcf0508/unplugin-dingtalk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcf0508%2Funplugin-dingtalk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30379741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rebuild","vite","vuecli"],"created_at":"2024-10-12T01:41:07.594Z","updated_at":"2026-03-11T11:29:44.203Z","avatar_url":"https://github.com/zcf0508.png","language":"TypeScript","funding_links":["https://github.com/sponsors/antfu","https://ko-fi.com/huali58081","https://afdian.com/a/huali08"],"categories":[],"sub_categories":[],"readme":"# unplugin-dingtalk\n\n[![NPM version](https://img.shields.io/npm/v/unplugin-dingtalk?color=a1b858\u0026label=)](https://www.npmjs.com/package/unplugin-dingtalk)\n[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/zcf0508/unplugin-dingtalk)\n\n一键启动钉钉内调试。支持 `vite`、`vue-cli`、`rsbuild`。\n\n## 功能\n- [x] 在钉钉内打开调试链接\n- [x] 可选注入 [vConsole](https://github.com/Tencent/vConsole) 用于调试 （仅支持 vite ）\n- [x] 可选注入 [chii](https://github.com/liriliri/chii) 用于调试\n- [x] ~~可选打开 [vue-devtools](https://github.com/vuejs/devtools) 用于调试~~ 已移除，如有需要请使用 [vue-devtools](https://devtools.vuejs.org/guide/standalone)\n- [x] 支持调试 `HttpOnly` cookies\n\n![images](https://github.com/zcf0508/unplugin-dingtalk/raw/main/images/Snipaste_2024-05-22_11-25-35.png)\n\n## 安装\n\n```bash\nnpm i unplugin-dingtalk --save-dev\n```\n\n```ts\ninterface Options {\n  enable?: boolean\n  targetUrl?: string\n  corpId?: string\n  debug?: boolean\n  /**\n   * only support vite\n   *\n   * @link https://github.com/vadxq/vite-plugin-vconsole#vitevconsole-options\n   */\n  vconsole?: viteVConsoleOptions\n  /** 需要调试的 cookies， 避免无法调试 HttpOnly 的 cookie */\n  debugCookies?: string[]\n  chii?: {\n    /** 默认值 `true` */\n    enable?: boolean\n    /**\n     * 默认值 `false`\n     * @link https://chii.liriliri.io/docs/#usage\n     */\n    embedded?: boolean\n  }\n}\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eVite\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// vite.config.ts\nimport UnpluginDingtalk from 'unplugin-dingtalk/vite';\n\nexport default defineConfig({\n  plugins: [\n    UnpluginDingtalk({\n      enable: true,\n    }),\n  ],\n});\n```\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eVue CLI 5\u003c/summary\u003e\u003cbr\u003e\n\n```js\n// vue.config.js\nconst [setupMiddlewares, unpluginDingtalk] = require('unplugin-dingtalk/webpack').default({\n  enable: true,\n});\n\n/**\n * @type {import('@vue/cli-service').ProjectOptions}\n */\nmodule.exports = {\n  devServer: {\n    setupMiddlewares,\n  },\n  configureWebpack: {\n    plugins: [\n      unpluginDingtalk,\n    ],\n  },\n};\n```\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eRsbuild\u003c/summary\u003e\u003cbr\u003e\n\n```js\n// rsbuild.config.js\nimport { defineConfig } from '@rsbuild/core';\nimport createUnpluginDingtalk from 'unplugin-dingtalk/rspack';\n\nconst [setupMiddlewares, unpluginDingtalk] = createUnpluginDingtalk({\n  enable: true,\n});\n\nexport default defineConfig({\n  dev: {\n    setupMiddlewares: [\n      setupMiddlewares,\n    ],\n  },\n  tools: {\n    rspack: {\n      plugins: [\n        unpluginDingtalk,\n      ],\n    },\n  },\n});\n```\n\n\u003cbr\u003e\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzcf0508%2Funplugin-dingtalk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzcf0508%2Funplugin-dingtalk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzcf0508%2Funplugin-dingtalk/lists"}