https://github.com/wChenonly/vite-plugin-cli-copy
Start the project and automatically copy the network url
https://github.com/wChenonly/vite-plugin-cli-copy
Last synced: 7 days ago
JSON representation
Start the project and automatically copy the network url
- Host: GitHub
- URL: https://github.com/wChenonly/vite-plugin-cli-copy
- Owner: wChenonly
- License: mit
- Created: 2023-07-12T12:52:33.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-24T01:17:39.000Z (over 1 year ago)
- Last Synced: 2025-03-27T14:55:58.465Z (23 days ago)
- Language: TypeScript
- Size: 253 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- fucking-awesome-vite - vite-plugin-cli-copy - Start the project and automatically copy the terminal's network URL. (Plugins / Framework-agnostic Plugins)
- awesome-vite - vite-plugin-cli-copy - Start the project and automatically copy the terminal's network URL. (Plugins / Framework-agnostic Plugins)
README
vite-plugin-cli-copy
Start the project and automatically copy the terminal's network URL
English | [简体中文](./README.zh_CN.md)

## Install
```bash
npm install vite-plugin-cli-copy -D
pnpm add vite-plugin-cli-copy -D
```## Usage
- package.json
```json
{
"scripts": {
"dev": "vite --host"
}
}
```- vite.config.ts
```ts
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import cliCopy from 'vite-plugin-cli-copy'export default defineConfig({
plugins: [vue(), cliCopy()]
})
```## Thanks
Great thanks to [@bluwy](https://github.com/bluwy) The project of [vite-plugin-qrcode](https://github.com/svitejs/vite-plugin-qrcode)
## License
[MIT © wChenonly-latest](./LICENSE)