Watching all main dirs.

This commit is contained in:
JesseBrault0709 2023-01-10 12:33:42 -06:00
parent 0dd5b2447b
commit 3c8ac6a743

View File

@ -183,6 +183,21 @@ class StaticSiteGeneratorCli implements Callable<Integer> {
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 {