1.0.1 • Published 2 years ago

vite-plugin-named-port v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

vite-plugin-named-port

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

1.0.1

2 years ago

1.0.0

2 years ago