diff options
Diffstat (limited to 'lib/generators/website.js')
-rw-r--r-- | lib/generators/website.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/generators/website.js b/lib/generators/website.js index 8d1a3c5..de833d3 100644 --- a/lib/generators/website.js +++ b/lib/generators/website.js @@ -50,12 +50,13 @@ Generator.prototype.prepareStyles = function() { this.styles = _.chain(this.styles) .map(function(style) { var stylePath = that.options.styles[style]; - if (fs.existsSync(path.resolve(that.book.root, stylePath))) { - return stylePath; + if (stylePath && fs.existsSync(path.resolve(that.book.root, stylePath))) { + return [style, stylePath]; } return null; }) .compact() + .object() .value(); return Q(); |