Skip to content

Commit

Permalink
Add support for secured sites and browsersync to vite (#307)
Browse files Browse the repository at this point in the history
* Add type hints for vite

* Use valet cetificates in vite if the site is secured

* Install `vite-plugin-browser-sync` npm package

* Add npm script for vite with browsersync env variable

* Ensure vite uses current ip as host

* Add the browsersync plugin to vite if the env variable is present

* Remove unnecessary semicolons

* optimize ternary operator

* ensure browsersync is only used if device is connected to a network

* add whitespace after assignment operator

* open external url with browsersync
  • Loading branch information
marcorieser authored Apr 3, 2023
1 parent 906f3c4 commit 27eced8
Show file tree
Hide file tree
Showing 3 changed files with 9,236 additions and 1,538 deletions.
Loading

0 comments on commit 27eced8

Please sign in to comment.