Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.16 KB

README.md

File metadata and controls

50 lines (35 loc) · 1.16 KB

vite-plugin-cli-copy

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

NPM version NPM Downloads

English | 简体中文

Install

npm install vite-plugin-cli-copy -D
pnpm add vite-plugin-cli-copy -D

Usage

  • package.json
{
  "scripts": {
    "dev": "vite --host"
  }
}
  • vite.config.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 The project of vite-plugin-qrcode

License

MIT © wChenonly-latest