From 761a2e7eee66501db6d8fadac800081bfba8bc14 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Tue, 18 Aug 2020 09:42:57 -0400 Subject: [PATCH] Serve and watch themes dir --- dev-server.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dev-server.js b/dev-server.js index 73b5cc33a..d3b83b53c 100644 --- a/dev-server.js +++ b/dev-server.js @@ -48,6 +48,7 @@ app.use(/^\/$/, async (req, res, next) => { res.type('html').send(index); }); app.use('/dist', express.static('./dist')); +app.use('/themes', express.static('./themes')); app.use('/', express.static('./docs')); app.listen(proxyPort); @@ -69,8 +70,8 @@ setTimeout(() => { } }); - // Reload when docs change - bs.watch('docs/**/*').on('change', async () => { + // Reload when docs or themes change + bs.watch('./{docs,themes}/**/*').on('change', async () => { bs.reload(); }); }, 5000);