stacks/vite-plugin-local
publicClone
Push over the same URL. A password will not work: create a token under access tokens and use it in place of one.
🎨 Pretty development URLs, and HTTPS. Zero config, zero setup.
- .config
- .github
- .vscode
- docs
- src
- test
- .editorconfig 147 B
- .gitattributes 12 B
- .gitignore 127 B
- build.ts 549 B
- bun.lock 117.9 KB
- bunfig.toml 107 B
- CHANGELOG.md 10.5 KB
- CLAUDE.md 1.4 KB
- LICENSE.md 1.1 KB
- package.json 2.1 KB
- pkgx.yaml 31 B
- README.md 3.6 KB
- tsconfig.json 663 B

vite-plugin-local
A smart Vite plugin that enables pretty development URLs, including HTTPS.
Features
- Proxies HTTP/HTTPS requests
- Pretty development URLs
- Smart HTTPS management
- Automatically cleans URLs
- Lightweight
- Soon: Local Tunneling & WebSocket Proxying
Install
npm install -d vite-plugin-local
# bun install -d vite-plugin-localGet Started
// vite.config.ts
import { defineConfig } from 'vite'
import Local from 'vite-plugin-local'
export default defineConfig({
plugins: [
Local({
domain: 'my-app.local', // default: stacks.localhost
https: true, // default: true, pass TlsConfig options for custom certificates
cleanup: {
certs: true, // default: false, cleans up the certificates created on server shutdown
hosts: true, // default: true, cleans up /etc/hosts on server shutdown
},
cleanUrls: true, // default: false, cleans up URLs by not requiring the .html extension
verbose: true, // default: false, enables detailed logging
})
]
})To learn more, head over to the documentation.
Testing
bun testChangelog
Please see our releases page for more information on what has changed recently.
Contributing
Please review the Contributing Guide for details.
Community
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
For casual chit-chat with others using this package:
Join the Stacks Discord Server
Postcardware
“Software that is free, but hopes for a postcard.” We love receiving postcards from around the world showing where vite-plugin-local is being used! We showcase them on our website too.
Our address: Stacks.js, 12665 Village Ln #2306, Playa Vista, CA 90094, United States 🌎
Sponsors
We would like to extend our thanks to the following sponsors for funding Stacks development. If you are interested in becoming a sponsor, please reach out to us.
Credits
License
The MIT License (MIT). Please see LICENSE for more information.
Made with 💙
[codecov-href]: https://codecov.io/gh/stacksjs/vite-plugin-local -->