{"id":17345325,"url":"https://github.com/binbiubiubiu/unplugin-chii","last_synced_at":"2025-06-28T16:33:16.845Z","repository":{"id":65231846,"uuid":"586880412","full_name":"Binbiubiubiu/unplugin-chii","owner":"Binbiubiubiu","description":"use chii to debug pages","archived":false,"fork":false,"pushed_at":"2023-02-12T13:43:23.000Z","size":369,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-22T23:30:18.849Z","etag":null,"topics":["chii","debug","inspect","vite-plugin","webpack-plugin","webview"],"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/Binbiubiubiu.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},"funding":{"github":["Binbiubiubiu"]}},"created_at":"2023-01-09T13:00:42.000Z","updated_at":"2023-03-10T08:00:20.000Z","dependencies_parsed_at":"2024-09-18T23:31:54.988Z","dependency_job_id":null,"html_url":"https://github.com/Binbiubiubiu/unplugin-chii","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":"unplugin/unplugin-starter","purl":"pkg:github/Binbiubiubiu/unplugin-chii","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Binbiubiubiu%2Funplugin-chii","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Binbiubiubiu%2Funplugin-chii/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Binbiubiubiu%2Funplugin-chii/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Binbiubiubiu%2Funplugin-chii/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Binbiubiubiu","download_url":"https://codeload.github.com/Binbiubiubiu/unplugin-chii/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Binbiubiubiu%2Funplugin-chii/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262460346,"owners_count":23314720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["chii","debug","inspect","vite-plugin","webpack-plugin","webview"],"created_at":"2024-10-15T16:30:27.208Z","updated_at":"2025-06-28T16:33:16.825Z","avatar_url":"https://github.com/Binbiubiubiu.png","language":"TypeScript","funding_links":["https://github.com/sponsors/Binbiubiubiu"],"categories":[],"sub_categories":[],"readme":"# unplugin-chii\n\n[![NPM version](https://img.shields.io/npm/v/unplugin-chii?color=a1b858\u0026label=)](https://www.npmjs.com/package/unplugin-chii) [![CI](https://github.com/Binbiubiubiu/unplugin-chii/actions/workflows/ci.yml/badge.svg)](https://github.com/Binbiubiubiu/unplugin-chii/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/Binbiubiubiu/unplugin-chii/branch/main/graph/badge.svg?token=lN8p3F3hYN)](https://codecov.io/gh/Binbiubiubiu/unplugin-chii)\n\n## Install\n\n```bash\nnpm i unplugin-chii\n```\n\n## Option\n\n| name     | type    | description |\n| -------- | ------- | ----------- |\n| enable   | boolean |             |\n| port     | number  |             |\n| host     | string  |             |\n| domain   | string  |             |\n| cdn      | string  |             |\n| https    | string  |             |\n| sslCert  | string  |             |\n| sslKey   | string  |             |\n| basePath | string  |             |\n\n\u003cdetails\u003e\n\u003csummary\u003eVite\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// vite.config.ts\nimport Starter from 'unplugin-chii/vite'\n\nexport default defineConfig({\n  plugins: [\n    Starter({\n      /* options */\n    }),\n  ],\n})\n```\n\nExample: [`vite-playground/`](https://github.com/Binbiubiubiu/unplugin-chii/tree/main/vite-playground)\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eWebpack\u003c/summary\u003e\u003cbr\u003e\n\n\u003e You need to set `WEBPACK_SERVE` environment variable to non-falsy\n\n```ts\n// webpack.config.js\nconst HtmlWebpackPlugin = require('html-webpack-plugin')\n\nmodule.exports = {\n  /* ... */\n  plugins: [\n    new HtmlWebpackPlugin({\n      template: 'index.html',\n    }),\n    require('unplugin-chii/webpack')({\n      /* options */\n    }),\n  ],\n}\n```\n\nExample: [`webpack-playground/`](https://github.com/Binbiubiubiu/unplugin-chii/tree/main/webpack-playground/)\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eNuxt\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// nuxt.config.js\nexport default {\n  buildModules: [\n    [\n      'unplugin-chii/nuxt',\n      {\n        /* options */\n      },\n    ],\n  ],\n}\n```\n\n\u003e This module works for both Nuxt 2 and [Nuxt Vite](https://github.com/nuxt/vite)\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eVue CLI\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// vue.config.js\nmodule.exports = {\n  configureWebpack: {\n    plugins: [\n      require('unplugin-chii/webpack')({\n        /* options */\n      }),\n    ],\n  },\n}\n```\n\n\u003cbr\u003e\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinbiubiubiu%2Funplugin-chii","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinbiubiubiu%2Funplugin-chii","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinbiubiubiu%2Funplugin-chii/lists"}