diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-06-02 11:00:15 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-06-02 11:00:15 +0200 |
commit | 6d53e5277100fe6a9372dea4ab9d70c769a28176 (patch) | |
tree | e9b864c6c0e08d37afce0df70b1a9bffdb3f94a9 | |
parent | 52e10b7cfe9c79eb3b8d2a6a5d9540f46d6914df (diff) | |
download | gitbook-6d53e5277100fe6a9372dea4ab9d70c769a28176.zip gitbook-6d53e5277100fe6a9372dea4ab9d70c769a28176.tar.gz gitbook-6d53e5277100fe6a9372dea4ab9d70c769a28176.tar.bz2 |
Handle empty string for styles configuration
-rw-r--r-- | lib/generators/website.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/generators/website.js b/lib/generators/website.js index a671ca7..de833d3 100644 --- a/lib/generators/website.js +++ b/lib/generators/website.js @@ -50,7 +50,7 @@ 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))) { + if (stylePath && fs.existsSync(path.resolve(that.book.root, stylePath))) { return [style, stylePath]; } return null; |