lib/nanoc/base/compilation/compiler.rb in nanoc-4.2.1 vs lib/nanoc/base/compilation/compiler.rb in nanoc-4.2.2
- old
+ new
@@ -96,9 +96,13 @@
Nanoc::Int::ItemRepWriter::TMP_TEXT_ITEMS_DIR,
)
end
def load_stores
+ # FIXME: icky hack to update the dependency store’s list of objects
+ # (does not include preprocessed objects otherwise)
+ dependency_store.objects = site.items.to_a + site.layouts.to_a
+
stores.each(&:load)
end
# Store the modified helper data used for compiling the site.
#