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
!
npm install vite-plugin-backloop.dev --save-dev
- Edit
vite.config.js
- Add
import backloop from 'vite-plugin-backloop'
- Add
backloop('myHostName')
to the plugins list
- Add
Example
// vite.config.js
import { defineConfig } from 'vite';
import backloop from 'vite-plugin-backloop.dev';
export default defineConfig({
plugins: [
// ..
backloop('myComputer')
],
// ..
});
Launch viteJs in dev model npm run dev
Open https://myComputer.backloop.dev:<port>
- Pull requests are welcome