Skip to content

Instantly share code, notes, and snippets.

@chrismccord
Created May 8, 2024 20:06
Show Gist options
  • Save chrismccord/2c26c876bb4430c1bdcd313b64e4c2c5 to your computer and use it in GitHub Desktop.
Save chrismccord/2c26c876bb4430c1bdcd313b64e4c2c5 to your computer and use it in GitHub Desktop.
Live Reload LiveView notify
config :wps, WPSWeb.Endpoint,
live_reload: [
notify: [
live_view: [
~r"lib/wps_web/core_components.ex$",
~r"lib/wps_web/(live|components)/.*(ex|heex)$"
]
],
patterns: [
~r"priv/static/(?!uploads/).*(js|css|png|jpeg|jpg|gif|svg)$",
~r"priv/gettext/.*(po)$",
~r"lib/wps_web/controllers/.*(ex|heex)$"
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment