diff --git a/cli/src/main/groovy/com/jessebrault/ssg/StaticSiteGeneratorCli.groovy b/cli/src/main/groovy/com/jessebrault/ssg/StaticSiteGeneratorCli.groovy index fb61d24..191620f 100644 --- a/cli/src/main/groovy/com/jessebrault/ssg/StaticSiteGeneratorCli.groovy +++ b/cli/src/main/groovy/com/jessebrault/ssg/StaticSiteGeneratorCli.groovy @@ -183,6 +183,21 @@ class StaticSiteGeneratorCli implements Callable { watchableProviders << it } } + it.config.templatesProviders.each { + if (it instanceof WithWatchableDir) { + watchableProviders << it + } + } + it.config.partsProviders.each { + if (it instanceof WithWatchableDir) { + watchableProviders << it + } + } + it.config.specialPagesProviders.each { + if (it instanceof WithWatchableDir) { + watchableProviders << it + } + } } // register them and their child directories using the Closure above watchableProviders.each {