summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-05-21 17:34:36 +0200
committerSamy Pessé <samypesse@gmail.com>2014-05-21 17:34:36 +0200
commitc7439d12f7533a9a54218e58f18033c29b60bc6b (patch)
tree473b7e20c946a4fc918d8fa8221dbc3571f6e4c1 /bin
parent8d6923ce2cb0d6508a95435afb0cc51045cacaf6 (diff)
downloadgitbook-c7439d12f7533a9a54218e58f18033c29b60bc6b.zip
gitbook-c7439d12f7533a9a54218e58f18033c29b60bc6b.tar.gz
gitbook-c7439d12f7533a9a54218e58f18033c29b60bc6b.tar.bz2
Add livereload as default plugins only for serve
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gitbook.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/gitbook.js b/bin/gitbook.js
index ca68142..84f5a8f 100755
--- a/bin/gitbook.js
+++ b/bin/gitbook.js
@@ -45,7 +45,9 @@ build.command(prog.command('serve [source_dir]'))
server.stop()
.then(function() {
- return build.folder(dir, options);
+ return build.folder(dir, _.extend(options || {}, {
+ defaultsPlugins: ["livereload"]
+ }));
})
.then(function(_options) {
console.log();