diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/generate/plugin.js | 5 | ||||
-rw-r--r-- | lib/generate/site/index.js | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/lib/generate/plugin.js b/lib/generate/plugin.js index 2b06c15..5804f91 100644 --- a/lib/generate/plugin.js +++ b/lib/generate/plugin.js @@ -186,7 +186,8 @@ Plugin.fromList = function(names, root) { // Default plugins Plugin.defaults = [ "mixpanel", - "mathjax" + "mathjax", + "livereload" ]; -module.exports = Plugin;
\ No newline at end of file +module.exports = Plugin; diff --git a/lib/generate/site/index.js b/lib/generate/site/index.js index b63f703..6033fb4 100644 --- a/lib/generate/site/index.js +++ b/lib/generate/site/index.js @@ -237,9 +237,13 @@ Generator.prototype.writeCacheManifest = function() { }; Generator.prototype.finish = function() { - return this.copyAssets() - .then(this.writeSearchIndex) - .then(this.writeCacheManifest); + var deferred = this.copyAssets().then(this.writeSearchIndex); + + if (this.options.cache) { + deferred = deferred.then(this.writeCacheManifest); + } + + return deferred; }; module.exports = Generator; |