aspnet-webpack middleware - conditional/triggered webpack build #1004

Closed
opened 2025-08-09 17:18:30 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @Aleksanderis on 2/18/2017

webpack-dev-middleware works surprisingly well with ASP.NET, with just one BUT - it's more suited for front-end development, but not when I need to rebuild just back-end changes. If I do some changes in back-end, and there are no changes in front-end - first page load takes a lot, because it compiles webpack on each start.

I think it would be really great to make some option to rebuild webpack stack conditionally.
With current state of things to remain productive, I need to maintain two configurations - when I'm working on front-end and when I'm working on back-end (not speaking about webpack-watcher approach).

Just some high-level ideas how it could work:

  • I'm aware something like that might be achieved with webpack itself (using DLLPlugin, cached vendor chunks, etc). However I just don't want to trigger webpack build.
  • Detect if entry files weren't changed (probably also webpack itself related way).
  • Trigger webpack middleware logic by navigating to some special route.
  • Maybe it's already possible to do somehow?
*Originally created by @Aleksanderis on 2/18/2017* webpack-dev-middleware works surprisingly well with ASP.NET, with just one BUT - it's more suited for front-end development, but not when I need to rebuild just back-end changes. If I do some changes in back-end, and there are no changes in front-end - first page load takes a lot, because it compiles webpack on each start. I think it would be really great to make some option to rebuild webpack stack conditionally. With current state of things to remain productive, I need to maintain two configurations - when I'm working on front-end and when I'm working on back-end (not speaking about webpack-watcher approach). Just some high-level ideas how it could work: - I'm aware something like that might be achieved with webpack itself (using DLLPlugin, cached vendor chunks, etc). However I just don't want to trigger webpack build. - Detect if entry files weren't changed (probably also webpack itself related way). - Trigger webpack middleware logic by navigating to some special route. - Maybe it's already possible to do somehow?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1004
No description provided.