Skip to content

Commit

Permalink
feat: support .htm files in fallback server (#1033)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed May 7, 2024
1 parent cc564a6 commit 2ed3b31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/cli/src/collect/fallback-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ class FallbackServer {
.filter(fileOrDir => fileOrDir.isDirectory())
.map(dir => dir.name);

const htmlFiles = files.filter(file => file.endsWith('.html')).map(file => ({file, depth: 0}));
const htmlFiles = files
.filter(file => file.endsWith('.html') || file.endsWith('.htm'))
.map(file => ({file, depth: 0}));

if (depth === 0) return htmlFiles;

Expand Down

0 comments on commit 2ed3b31

Please sign in to comment.