diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-12-11 14:31:08 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-12-11 14:31:08 +0100 |
commit | becd027563f361e7dc6824d18c58978b08aa6118 (patch) | |
tree | 07f4ccb0ad13c34500674bd6d03345ab43c7e78b /lib/generators | |
parent | 6eb1605be634799cc56d97f83a25d3e7bb87f86d (diff) | |
download | gitbook-becd027563f361e7dc6824d18c58978b08aa6118.zip gitbook-becd027563f361e7dc6824d18c58978b08aa6118.tar.gz gitbook-becd027563f361e7dc6824d18c58978b08aa6118.tar.bz2 |
Check style existence on output folder instead of source
Diffstat (limited to 'lib/generators')
-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 ecfd98c..1143fe5 100644 --- a/lib/generators/website.js +++ b/lib/generators/website.js @@ -49,7 +49,7 @@ Generator.prototype.prepareStyles = function() { this.styles = _.chain(this.styles) .map(function(style) { var stylePath = that.options.styles[style]; - if (stylePath && fs.existsSync(that.book.resolve(stylePath))) { + if (stylePath && fs.existsSync(that.book.resolveOutput(stylePath))) { return [style, stylePath]; } return null; |