mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-22 02:23:30 +00:00
Fix cache manifest generation
This commit is contained in:
@@ -240,8 +240,8 @@ Generator.prototype.writeCacheManifest = function() {
|
||||
Generator.prototype.finish = function() {
|
||||
var deferred = this.copyAssets().then(this.writeSearchIndex);
|
||||
|
||||
if (this.options.cache) {
|
||||
deferred = deferred.then(this.writeCacheManifest);
|
||||
if (this.options.cache !== false) {
|
||||
deferred = deferred.then(this.writeCacheManifest);
|
||||
}
|
||||
|
||||
return deferred;
|
||||
|
||||
Reference in New Issue
Block a user