vite-plugin-named-port
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

vite-plugin-named-port

NPM Version NPM Downloads License MIT

Use a deterministic port for your Vite dev server.

Based on named-port package.

Usage

// vite.config.js
import namedPort from 'vite-plugin-named-port';

export default {
	plugins: [namedPort()],
	// or
	plugins: [namedPort('custom-text')],
};

If you don't provide a custom input, the plugin will try to read the name field from your package.json file. If it's not present, it will use the current working directory name instead.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i vite-plugin-named-port

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

3.64 kB

Total Files

5

Last publish

Collaborators

  • kubajastrz