When using the patchFile option to provide an HTML file for patching in neu configuration, each time you run the neu run command, the port number in the script tag changes to a different one. If the HTML page is version-controlled in Git, there's a risk of accidentally committing this change. The problematic line is:
Add the note about using of the --port command line option when running neu run. Setting a constant port number prevents changes to the port in index.html file. For example:
Documentation page
https://neutralino.js.org/docs/getting-started/using-frontend-libraries#enabling-hot-reload-and-configuration
Problem
When using the
patchFile
option to provide an HTML file for patching in neu configuration, each time you run theneu run
command, the port number in the script tag changes to a different one. If the HTML page is version-controlled in Git, there's a risk of accidentally committing this change. The problematic line is:Solution
Add the note about using of the
--port
command line option when runningneu run
. Setting a constant port number prevents changes to the port inindex.html
file. For example: