Skip to content

stacksjs/vite-plugin-local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8a4fc83 Β· Dec 14, 2024

History

36 Commits
Dec 10, 2024
Dec 9, 2024
Dec 2, 2024
Dec 13, 2024
Dec 14, 2024
Dec 2, 2024
Dec 2, 2024
Dec 2, 2024
Dec 2, 2024
Dec 14, 2024
Dec 2, 2024
Dec 10, 2024
Dec 9, 2024
Dec 13, 2024
Dec 2, 2024
Dec 2, 2024
Dec 14, 2024
Dec 2, 2024
Dec 2, 2024

Repository files navigation

Social Card of this repo

npm version GitHub Actions Commitizen friendly

Local Development

A smart reverse proxy for local development, with HTTPS support & other goodies.

Features

  • Pretty development URLs
  • Smart HTTPS management
  • Automatically cleans URLs
  • Lightweight
  • Soon: Local Tunneling

Install

npm install -d vite-plugin-local
# bun install -d vite-plugin-local

Get 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
      etcHostsCleanup: 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 test

Changelog

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:

Discussions on GitHub

For casual chit-chat with others using this package:

Join the Stacks Discord Server

Postcardware

Two things are true: Stacks OSS will always stay open-source, and we do love to receive postcards from wherever Stacks is used! 🌍 We also publish them on our website.

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 πŸ’™