https://github.com/yzydeveloper/vite-plugin-print-urls
print server urls
https://github.com/yzydeveloper/vite-plugin-print-urls
Last synced: 6 months ago
JSON representation
print server urls
- Host: GitHub
- URL: https://github.com/yzydeveloper/vite-plugin-print-urls
- Owner: yzydeveloper
- License: mit
- Created: 2022-08-10T02:55:15.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-23T09:27:36.000Z (over 2 years ago)
- Last Synced: 2024-10-07T13:37:45.791Z (7 months ago)
- Language: TypeScript
- Size: 43.9 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vite-plugin-print-urls
print server urls
---
before use
```bash
下午1:12:56 [vite] page reload index.html
下午1:13:01 [vite] hmr update index.css
```after use
```bash
下午1:12:56 [vite] page reload index.html
> Local: http://localhost:3000/
> Network: use `--host` to expose
下午1:13:01 [vite] hmr update index.css
> Local: http://localhost:3000/
> Network: use `--host` to expose
```## Install
```bash
npm i -D vite-plugin-print-urls
```Add plugin to your `vite.config.ts`:
```typescript
import PrintUrlsPlugin from 'vite-plugin-print-urls'export default defineConfig(() => {
return {
plugins: [
PrintUrlsPlugin()
],
}
})
```