Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

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: about 2 months ago
JSON representation

Start the project and automatically copy the network url

Lists

README

        

vite-plugin-cli-copy


Start the project and automatically copy the terminal's network URL


NPM version
NPM Downloads

English | [简体中文](./README.zh_CN.md)

![](./instructions/copy.jpg)

## 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)