Embbed a nodemon process for hot reload with --watch argument
We wanted to automatically reload the merged file when a source file is updated (.svg
/ .html`).
This is done through the --watch
argument that will launch an embedded nodemon process (see nodemon requirable) that will re-call the script and pass arguments.