Slight change to hot-reload API (dropped "on" for beforeReload and afterReload)