Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: improve live reload performance #110

Merged
merged 1 commit into from
Oct 11, 2024
Merged

perf: improve live reload performance #110

merged 1 commit into from
Oct 11, 2024

Conversation

mhanberg
Copy link
Collaborator

The way that live reload paths were being handled were creating some false
positives which then creating an infinite reload loop.

This required a change to web_dev_utils and then then a change to my sites reloader opts, the patterns
were not prefixed by ^. This will be updated in the tableau_new generator.

config :tableau, :reloader,
  patterns: [
    ~r"^lib/.*.ex",
    ~r"^(_posts|_docs)/.*.md",
    ~r"^(_includes)/.*.html",
    ~r"^assets/*.(css|js)"
  ]

This also changes it that websocket connections will not trigger a rebuild.

@mhanberg mhanberg merged commit e0cc106 into main Oct 11, 2024
7 checks passed
@mhanberg mhanberg deleted the live-reload-perf branch October 11, 2024 22:08
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.

1 participant