Middleware for the UI5 server that triggers a live reload in the browser when files inside the webapp directory change (e.g., on save). Version 3.3.0 requires @ui5/cli >= 3.0.0 with specVersion '3.0'. Community-maintained by the UI5 ecosystem showcase. Key differentiators: customisable watch paths, polling for WSL2, and inclusion of framework/application dependencies.
npm install ui5-middleware-livereloadVerified import paths — ran on the pinned version, not inferred.
Shows installation and configuration of the live reload middleware in ui5.yaml.
Configure a custom 'port' in the configuration section of ui5.yaml.
Use 'watchPath' instead of 'path' in the configuration.
Check the console logs for errors; increase debug level by setting 'debug: true'.
Update @ui5/cli to version 3.0.0 or later and set specVersion: '3.0' in ui5.yaml.
Add configuration: { usePolling: true } only when needed.Change the port in ui5.yaml configuration (e.g., port: 35730).
Update ui5.yaml to include 'specVersion: "3.0"' at the top level.
Run 'npm install ui5-middleware-livereload --save-dev' in your project.
Ensure the YAML has a 'configuration' block under the middleware definition.