diff --git a/lib/output/base.js b/lib/output/base.js index 6662443fe..491db9587 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');