From d01e967a82a333456cc523e236a06b2a79f71828 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Sat, 31 Oct 2020 23:41:18 +0900 Subject: [PATCH] serve foo.html as foo --- main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.js b/main.js index 1c2902c..fae7715 100644 --- a/main.js +++ b/main.js @@ -70,6 +70,7 @@ const defaultSettings = { dirs: true, index: true, scan: true, + extensions: ['html'], recent: [], }; const maxRecent = 10; @@ -283,6 +284,7 @@ if (isShell) { settings.cors = args.cors; settings.ssl = args.ssl; settings.root = args._[0]; + settings.extensions = ['html']; } app.on('ready', () => {