Describe the Bug
When using angular-builders/custom-esbuild:dev-server with a configured middleware, some calls to files with specific file extensions (tested js and css) are not triggering the middleware script.
Minimal Reproduction
- Clone the repository below.
npm i
npm run start
- Open assets/foo.txt, the content of the file is shown and the console shows the accessed path (printed by the middleware script).
- Open assets/foo.js or assets/foo.css, the content is also shown, but no path is printed by the middleware.
- The sameis true for a directory outside the src tree, mapped as public-assets/bar.*.
reproduction repository
Expected Behavior
All resources accessed through the dev server should be seen by a configured middleware script.
Environment
See minimal example for details, Angular 20+, angular-builders/custom-esbuild:dev-server 20.0.0.
Describe the Bug
When using angular-builders/custom-esbuild:dev-server with a configured middleware, some calls to files with specific file extensions (tested js and css) are not triggering the middleware script.
Minimal Reproduction
npm inpm run startreproduction repository
Expected Behavior
All resources accessed through the dev server should be seen by a configured middleware script.
Environment
See minimal example for details, Angular 20+, angular-builders/custom-esbuild:dev-server 20.0.0.