unplugin-portless
v1.0.1
Published
Out of the box support for Vite + Portless
Downloads
0
Maintainers
Readme
unplugin-portless

Out of the box support for Vite + Portless.
Usage
First follow the instructions on https://portless.sh to get started with Portless.
Install unplugin-portless from npm with your preferred package manager, then:
// vite.config.js / vite.config.ts
import { defineConfig } from 'vite';
import portless from 'unplugin-portless/vite';
export default defineConfig({
plugins: [
+ portless(),
],
});The plugin will set corresponding config for you, and add the note for humans & agents:
❯ bun dev
$ portless
-- Using port 4931
$ vite
VITE v8.2.1 ready in 536 ms
➜ Local: http://127.0.0.1:4931/
➜ press h + enter to show help
+ ➜ Portless: https://my-app.localhostFor available options, see src/types.ts.
Compatibility
The plugin is compatible with Portless v0.12+.
Only Vite 7+ is supported currently. Contributions for other build tools are welcome!
