Search code examples
node.jsmustachenodemon

mustache-js views don't auto-refresh with nodemon


I've been using nodemon for a while to save me the trouble of restarting the server whenever I edit a file.

Now I switched to using mustache.js templates, and the magically-always-up-to-date ceased to work - I now need to manually restart the server for my changes to take effect.

Is this a bug? Misconfiguration?

To clarify: whenever I edit a .mustache file, I need to manually restart the server to see my changes.


Solution

  • From this answer I changed my start script to

    "start": "nodemon -e js,mustache ./server.js",