vite-plugin-print-urls

print server urls


Keywords
vite, vite hmr
License
MIT
Install
npm install vite-plugin-print-urls@0.1.0

Documentation

vite-plugin-print-urls

print server urls


before use

δΈ‹εˆ1:12:56 [vite] page reload index.html
δΈ‹εˆ1:13:01 [vite] hmr update index.css

after use

δΈ‹εˆ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

npm i -D vite-plugin-print-urls

Add plugin to your vite.config.ts:

import PrintUrlsPlugin from 'vite-plugin-print-urls'

export default defineConfig(() => {
    return {
        plugins: [
            PrintUrlsPlugin()
        ],
    }
})