1.0.1 • Published 2 years ago
vite-plugin-named-port v1.0.1
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