diff options
Diffstat (limited to 'lib/cli/index.js')
-rw-r--r-- | lib/cli/index.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/cli/index.js b/lib/cli/index.js index 33df69f..58a0e1b 100644 --- a/lib/cli/index.js +++ b/lib/cli/index.js @@ -113,14 +113,19 @@ module.exports = { // Generate the book .then(function() { return Book.setup(helper.nodeFS, input, { - 'config': { - 'defaultsPlugins': ['livereload'] - }, 'logLevel': kwargs.log }) .then(function(book) { return book.parse() .then(function() { + // Add livereload plugin + book.config.set('plugins', + book.config.get('plugins') + .concat([ + { name: 'livereload' } + ]) + ); + var Out = helper.FORMATS[kwargs.format]; var output = new Out(book); |