Skip to content

Conversation

@severo
Copy link
Contributor

@severo severo commented Mar 10, 2025

fixes #173 by disabling the automatic opening of a browser tab when the cli restarts.

It means that the workflow in dev would be:

  • run npm run dev
  • click the URL shown in the console logs (by default http://localhost:2048) to open in a browser
  • do some changes in the code -> the new app will be rebuild automatically and the CLI will be restarted too, but the opened tab will still show the outdated version
  • manually update the browser tab.

A follow-up could be to set up browser-sync (I could not make it work easily) or another tool to open and reload a browser tab automatically.

@severo
Copy link
Contributor Author

severo commented Mar 10, 2025

merging for now, but interested in your feedback @platypii: do you want me to try to get live reload or hot reload, or is it OK now?

@severo severo merged commit b9d46b2 into master Mar 10, 2025
4 checks passed
@severo severo deleted the 173-refresh-tab-on-reload branch March 10, 2025 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

npm run dev loads two new tabs with every change

2 participants