https://github.com/yzydeveloper/vite-plugin-port
Solve the port duplication when Vite starts the service
https://github.com/yzydeveloper/vite-plugin-port
Last synced: over 1 year ago
JSON representation
Solve the port duplication when Vite starts the service
- Host: GitHub
- URL: https://github.com/yzydeveloper/vite-plugin-port
- Owner: yzydeveloper
- License: mit
- Created: 2022-05-25T17:27:51.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-29T11:36:28.000Z (about 4 years ago)
- Last Synced: 2025-02-10T17:18:05.357Z (over 1 year ago)
- Language: TypeScript
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vite-plugin-port
Solve the port duplication when Vite starts the service when the `host` option is turned on
## Install
```bash
npm i vite-plugin-port -D
```
## Usage
```typescript
import PortPlugin from 'vite-plugin-port'
{
plugins:[
PortPlugin()
]
}
```