summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/output/base.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/output/base.js b/lib/output/base.js
index 6662443..491db95 100644
--- a/lib/output/base.js
+++ b/lib/output/base.js
@@ -59,6 +59,14 @@ Output.prototype.generate = function() {
});
})
+ // Transform the configuration
+ .then(function() {
+ return that.plugins.hook('config', that.book.config.dump())
+ .then(function(cfg) {
+ that.book.config.replace(cfg);
+ });
+ })
+
// Initialize the generation
.then(function() {
that.log.info.ln('preparing the generation');