Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 58eaaf5

Browse files
committed
Fix error when plugin don't extend book
1 parent c0ae013 commit 58eaaf5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/generate/plugin.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ Plugin.fromList = function(names, root) {
163163
resources.html = {}
164164

165165
_.each(plugins, function(plugin) {
166+
if (!plugin.infos.book || !plugin.infos.book.html) return;
166167
var html = plugin.infos.book.html || {};
167168
_.each(html, function(code, key) {
168169
if (!_.isFunction(code)) code = _.constant(code);

0 commit comments

Comments
 (0)