diff options
Diffstat (limited to 'lib/output/base.js')
-rw-r--r-- | lib/output/base.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/output/base.js b/lib/output/base.js index 4563646..903323f 100644 --- a/lib/output/base.js +++ b/lib/output/base.js @@ -38,10 +38,8 @@ function Output(book, opts, parent) { // Files to ignore in output this.ignore = Ignore(); - // Hack to inherits from rules of the book: - // Waiting for https://github.com/kaelzhang/node-ignore/pull/19 to be merged - this.ignore._rules = this.ignore._rules.concat(this.book.ignore._rules); - this.ignore._cache = {}; + // Hack to inherits from rules of the book + this.ignore.add(this.book.ignore); } // Default name for generator |