diff --git a/packages/angular/build/src/tools/vite/middlewares/assets-middleware.ts b/packages/angular/build/src/tools/vite/middlewares/assets-middleware.ts index d1e4101cc89a..94d7aa0e46fa 100644 --- a/packages/angular/build/src/tools/vite/middlewares/assets-middleware.ts +++ b/packages/angular/build/src/tools/vite/middlewares/assets-middleware.ts @@ -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);