diff options
Diffstat (limited to 'lib/generators/website.js')
-rw-r--r-- | lib/generators/website.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/generators/website.js b/lib/generators/website.js index 1143fe5..efb7c0f 100644 --- a/lib/generators/website.js +++ b/lib/generators/website.js @@ -49,7 +49,12 @@ Generator.prototype.prepareStyles = function() { this.styles = _.chain(this.styles) .map(function(style) { var stylePath = that.options.styles[style]; - if (stylePath && fs.existsSync(that.book.resolveOutput(stylePath))) { + var styleExists = ( + fs.existsSync(that.book.resolveOutput(stylePath)) || + fs.existsSync(that.book.resolve(stylePath)) + ); + + if (stylePath && styleExists) { return [style, stylePath]; } return null; |