From 1da80fcf621356935705ba1c1f2060a795362e19 Mon Sep 17 00:00:00 2001 From: Per Jakobsen Date: Wed, 12 Apr 2017 22:06:23 +0200 Subject: [PATCH] Make lint and tests pass (on windows) --- lib/options.js | 2 +- lib/serve.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/options.js b/lib/options.js index 1546d96..69d8876 100644 --- a/lib/options.js +++ b/lib/options.js @@ -62,7 +62,7 @@ function parseThemeArg(theme) { } function parseScriptsArg(scripts) { - return (typeof scripts === 'string' ? scripts.split(',') : []).map(script => path.join('scripts', script)); + return (typeof scripts === 'string' ? scripts.split(',') : []).map(script => `scripts/${script}`); } function parseScriptsPath(scripts) { diff --git a/lib/serve.js b/lib/serve.js index 72fdbd4..406eb82 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -33,7 +33,7 @@ module.exports = function startServer(options, cb) { app.use('/' + dir, staticDir(path.join(options.revealBasePath, dir))); }); - app.use(`/css/highlight`, staticDir(options.highlightThemePath)); + app.use('/css/highlight', staticDir(options.highlightThemePath)); if(options.watch) { const liveReloadServer = liveReload.createServer({