Skip to content

Commit

Permalink
fix(@angular/build): serve HTML files directly
Browse files Browse the repository at this point in the history
Ensure direct requests to HTML files result in them being served.

Closes angular#28063
  • Loading branch information
alan-agius4 committed Jul 18, 2024
1 parent a9e3126 commit f2f3c9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function createAngularAssetsMiddleware(
// Resource files are handled directly.
// Global stylesheets (CSS files) are currently considered resources to workaround
// dev server sourcemap issues with stylesheets.
if (extension !== '.js' && extension !== '.html') {
if (extension !== '.js') {
const outputFile = outputFiles.get(pathname);
if (outputFile?.servable) {
const mimeType = lookupMimeType(extension);
Expand Down

0 comments on commit f2f3c9d

Please sign in to comment.