asuh / forage

Forage is a WordPress Starter Theme for custom themes using Laravel Blade, Vite, and Biome.
GNU General Public License v3.0
4 stars 1 forks source link

Add Browsersync functionalities #10

Open asuh opened 1 month ago

asuh commented 1 month ago

I could either add Browsersync itself or find a way to add a couple of functionalities:

  1. The current HMR solution provides real-time CSS and JS updates incrementally on-save, the one potential thing that would be interesting is to sync the scroll position
  2. Allow an external device to preview the IP address and host of the project. This might be adding --host to the vite commands, need to do more reading and testing
asuh commented 1 month ago

I tried --host and that does work for the theme files themselves but it doesn't work to show the localhost environment completely.