Skip to content

Commit

Permalink
Fix index page loading in dev server when bundle type isn't html (#9282)
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Oct 1, 2023
1 parent 375a2e5 commit 830d755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/reporters/dev-server/src/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export default class Server {
// If the main asset is an HTML file, serve it
let htmlBundleFilePaths = this.bundleGraph
.getBundles()
.filter(bundle => bundle.type === 'html')
.filter(bundle => path.posix.extname(bundle.name) === '.html')
.map(bundle => {
return `/${relativePath(
this.options.distDir,
Expand Down

0 comments on commit 830d755

Please sign in to comment.