ggrossetie / asciidoctor-web-pdf

Convert AsciiDoc documents to PDF using web technologies
https://asciidoctor.org
MIT License
445 stars 92 forks source link

Template require is not reloaded in watch mode #540

Open ggrossetie opened 3 years ago

ggrossetie commented 3 years ago

Discussed in https://github.com/Mogztter/asciidoctor-web-pdf/discussions/484

Originally posted by **wh81752** May 11, 2021 I use options -w (watch) and --preview as shown below: ```console $ asciidoctor-web-pdf -w --preview --template-require ./doc.js doc.adoc Watch mode entered, needs to be manually terminated using Ctrl+C! ``` Now, when I change `doc.adoc` then my changes are reflected in Chromium opened by `--preview`. That is expected. However, my (structural) changes to `doc.js` are not taken into account. So whenever I change `doc.js` I need to terminate process above and restart again. Is that expected behaviour or do I miss something?