From fb54fffff48c6b1d4df0a1eddde93a172fe17ee3 Mon Sep 17 00:00:00 2001 From: n3f Date: Fri, 25 Jan 2019 12:26:50 -0800 Subject: [PATCH] use locally installed themes before trying themeserver --- lib/builder/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/builder/index.js b/lib/builder/index.js index 2211d467..cedba7b1 100644 --- a/lib/builder/index.js +++ b/lib/builder/index.js @@ -58,6 +58,9 @@ module.exports = function resumeBuilder(theme, dir, resumeFilename, cb) { render = require(path.join(process.cwd(), packageJson.main || 'index')).render; } catch(e) { // The file does not exist. + try { + render = require('jsonresume-theme-' + theme).render; + } catch(e){} } if(render && typeof render === 'function') {