Skip to content

Latest commit

 

History

History

vitejs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

backloop.dev plugin for viteJS

npm License

Do SSL HTTPS requests on Localhost using backloop.dev certificates pointing to your local environment.

https://<any subdomain>.backloop.dev/ → https://localhost/

Any subdomain of *.backloop.dev points to localhost!

Install

  1. npm install vite-plugin-backloop.dev --save-dev
  2. Edit vite.config.js
    • Add import backloop from 'vite-plugin-backloop'
    • Add backloop('myHostName') to the plugins list

Example

// vite.config.js
import { defineConfig } from 'vite';
import backloop from 'vite-plugin-backloop.dev';

export default defineConfig({
  plugins: [
    // ..
    backloop('myComputer')
  ],
  // ..
});

Run

Launch viteJs in dev model npm run dev

Open https://myComputer.backloop.dev:<port>

CONTRIBUTING

- Pull requests are welcome

License

BSD-3-Clause