-1

I am using 'deno' and 'oak'. for auto refreshing I am using 'denon' which is similar to 'nodemon' in nodejs. as a template engine, third party module, I am using - 'denjucks'. Whenever, I do any change in template code and save, server is not restarting automatically. How to solve this issue?

James Z
  • 12,209
  • 10
  • 24
  • 44

2 Answers2

0

You can use exts options and add html.

{
  "scripts": { /* */ },

  "watcher": {
    // The number of milliseconds after the last change.
    "interval": 350,
    // The file extensions that it will scan for.
    "exts": ["js", "ts", "json", "html"],
    // The globs that it will scan for.
    "match": ["*.*"],
    // The globs that it will not scan for.
    "skip": ["*/.git/*"],
    // Use the legacy file monitoring algorithm. (walking)
    "legacy": false
  }
}
Marcos Casagrande
  • 37,983
  • 8
  • 84
  • 98
-1

Solved the issue. In denon.json file added following -

"watcher": {   
       "exts": ["js", "ts", "json", "html"]
}

This adds html file in watcher list.