You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A live reload to map-styles local NPM dev script #1147
alive-server seems to be the most actively developed node module for browser refresh that doesn't require adding code into our pages. I've not been able to get it working with https connections and have opened an issue with them seeking help.
If that doesn't pan out I'll look into another alternative.
browsersync seems to do what we need with little fuss. I've swapped it for http-server, modified the npm run start script accordingly, and made a minor update to our README.
@jeffreyameyer, could you check out the browser-sync branch of map-styles, run npm install, then npm run start, and see if the reload is working for you?
Users have to click through an initial security warning and a second accept this risk on Firefox (possibly a 1x thing)
This is always going to happen with a self-signed certificate. This one is set up with a 10 year expiration so a user should only have to do it once for a given computer and browser. The alternative would be to use a pair from something like Let's Encrypt which wouldn't throw that warning but would need to be replaced every 90 days.
The web pages never seem to fully load, giving a busy signal blue dot in Firefox
Chrome exhibits comparable behavior. I tried adding an explicit --host 127.0.0.1 to the invocation but it has no effect (I've seen reports that say using localhost is what causes the busy signal but browser-sync seems to substitute localhost for the ip quad).
Activity
erictheise commentedon Oct 7, 2025
alive-serverseems to be the most actively developed node module for browser refresh that doesn't require adding code into our pages. I've not been able to get it working withhttpsconnections and have opened an issue with them seeking help.If that doesn't pan out I'll look into another alternative.
Addresses OpenHistoricalMap/issues#1147 by swapping browsersync for h…
Addresses OpenHistoricalMap/issues#1147 by swapping browsersync for h…
erictheise commentedon Oct 7, 2025
browsersyncseems to do what we need with little fuss. I've swapped it forhttp-server, modified thenpm run startscript accordingly, and made a minor update to our README.@jeffreyameyer, could you check out the
browser-syncbranch ofmap-styles, runnpm install, thennpm run start, and see if the reload is working for you?jeffreyameyer commentedon Oct 7, 2025
Works, with 2 comments:
erictheise commentedon Oct 8, 2025
This is always going to happen with a self-signed certificate. This one is set up with a 10 year expiration so a user should only have to do it once for a given computer and browser. The alternative would be to use a pair from something like Let's Encrypt which wouldn't throw that warning but would need to be replaced every 90 days.
Chrome exhibits comparable behavior. I tried adding an explicit
--host 127.0.0.1to the invocation but it has no effect (I've seen reports that say usinglocalhostis what causes the busy signal butbrowser-syncseems to substitute localhost for the ip quad).Addresses OpenHistoricalMap/issues#1147 w/browser-sync and a version …
erictheise commentedon Oct 8, 2025
Merged into staging and released as v.0.9.11. Since these are dev-only changes there's nothing to verify in production and I'm closing this issues.