From fae001c9f8f139bf641c17912f044dfb6f85bff8 Mon Sep 17 00:00:00 2001 From: "Daniel G. Taylor" Date: Tue, 16 Dec 2014 20:27:21 -0800 Subject: [PATCH] Fix live reload not responding to updates. Fixes #74. --- Changelog.md | 2 ++ src/bin.coffee | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Changelog.md b/Changelog.md index b442b067..281d8431 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,4 +1,6 @@ # Unreleased +* Fix live reload no longer working with some configurations + ([#74](https://github.com/danielgtaylor/aglio/issues/74)) * Switch to [Remarkable](https://github.com/jonschlinkert/remarkable) Markdown parser, which is faster and supports the new CommonMark specification. [GFM](https://help.github.com/articles/github-flavored-markdown/) diff --git a/src/bin.coffee b/src/bin.coffee index e6d5c940..cb813c30 100644 --- a/src/bin.coffee +++ b/src/bin.coffee @@ -95,9 +95,7 @@ exports.run = (argv=parser.argv, done=->) -> console.log "Socket connected" # TODO: Watch included files? - watcher = chokidar.watch(argv.i, - persistent: false - ) + watcher = chokidar.watch argv.i watcher.on "change", (path) -> console.log "Updated " + path _html = null