OK, progress, you were correct about the webpack files, hadn’t occurred to me that’s a separate watch-ing system…
Added the following to my Webpack config, and now live reloading is working well for assets managed by Webpack:
watchOptions: {
aggregateTimeout: 300,
poll: 500,
ignored: [
'node_modules',
],
},
The instructions at https://webpack.js.org/guides/development-vagrant/#running-the-server indicated a need for --host and --public args to be passed to webpack-dev-server, but I didn’t find these necessary.
Live reloading isn’t working for the Elixir files yet, here’s my live reload config in config/dev.exs:
config :poof, PoofWeb.Endpoint,
live_reload: [
backend: :fs_poll,
patterns: [
~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},
~r{priv/gettext/.*(po)$},
~r{lib/poof_web/views/.*(ex)$},
~r{lib/poof_web/templates/.*(eex)$},
],
]
Those pattern entries were generated when I created the Phoenix project, they seem correct, assuming the “.*(ex)$” and the like search those directories recursively?
Thankfully, changes to the Elixir files appear when I manually refresh the browser, so at least I’m to a point where I don’t have to restart the Phoenix dev server every time I make file changes!
Would be nice to get live reload for the Elixir files too, not sure what other steps I can take though…