diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2015-07-31 15:08:56 +0200 |
---|---|---|
committer | Aaron O'Mullan <aaron.omullan@gmail.com> | 2015-07-31 15:08:56 +0200 |
commit | d699dff872a36b33719385ddf8b641afdc5bada1 (patch) | |
tree | 46ee428353dd09a94fdf60c03d219d4fb24ee31e /lib/generators/website.js | |
parent | 501843d6243e0be3bcab0e7c9cc1b6ff2886d4f4 (diff) | |
download | gitbook-d699dff872a36b33719385ddf8b641afdc5bada1.zip gitbook-d699dff872a36b33719385ddf8b641afdc5bada1.tar.gz gitbook-d699dff872a36b33719385ddf8b641afdc5bada1.tar.bz2 |
Use Book.resolve when possible
For added consistency
Diffstat (limited to 'lib/generators/website.js')
-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 de833d3..675092f 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 (stylePath && fs.existsSync(path.resolve(that.book.root, stylePath))) { + if (stylePath && fs.existsSync(that.book.resolve(stylePath))) { return [style, stylePath]; } return null; |