https://github.com/binbiubiubiu/unplugin-chii
use chii to debug pages
https://github.com/binbiubiubiu/unplugin-chii
chii debug inspect vite-plugin webpack-plugin webview
Last synced: 3 months ago
JSON representation
use chii to debug pages
- Host: GitHub
- URL: https://github.com/binbiubiubiu/unplugin-chii
- Owner: Binbiubiubiu
- License: mit
- Created: 2023-01-09T13:00:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-12T13:43:23.000Z (over 2 years ago)
- Last Synced: 2025-06-22T23:30:18.849Z (4 months ago)
- Topics: chii, debug, inspect, vite-plugin, webpack-plugin, webview
- Language: TypeScript
- Homepage:
- Size: 360 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# unplugin-chii
[](https://www.npmjs.com/package/unplugin-chii) [](https://github.com/Binbiubiubiu/unplugin-chii/actions/workflows/ci.yml) [](https://codecov.io/gh/Binbiubiubiu/unplugin-chii)
## Install
```bash
npm i unplugin-chii
```## Option
| name | type | description |
| -------- | ------- | ----------- |
| enable | boolean | |
| port | number | |
| host | string | |
| domain | string | |
| cdn | string | |
| https | string | |
| sslCert | string | |
| sslKey | string | |
| basePath | string | |Vite
```ts
// vite.config.ts
import Starter from 'unplugin-chii/vite'export default defineConfig({
plugins: [
Starter({
/* options */
}),
],
})
```Example: [`vite-playground/`](https://github.com/Binbiubiubiu/unplugin-chii/tree/main/vite-playground)
Webpack
> You need to set `WEBPACK_SERVE` environment variable to non-falsy
```ts
// webpack.config.js
const HtmlWebpackPlugin = require('html-webpack-plugin')module.exports = {
/* ... */
plugins: [
new HtmlWebpackPlugin({
template: 'index.html',
}),
require('unplugin-chii/webpack')({
/* options */
}),
],
}
```Example: [`webpack-playground/`](https://github.com/Binbiubiubiu/unplugin-chii/tree/main/webpack-playground/)
Nuxt
```ts
// nuxt.config.js
export default {
buildModules: [
[
'unplugin-chii/nuxt',
{
/* options */
},
],
],
}
```> This module works for both Nuxt 2 and [Nuxt Vite](https://github.com/nuxt/vite)
Vue CLI
```ts
// vue.config.js
module.exports = {
configureWebpack: {
plugins: [
require('unplugin-chii/webpack')({
/* options */
}),
],
},
}
```