Webpack dev middleware writes files to disk #224

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

Originally created by @simmo on 1/16/2018

Title

Webpack dev middleware writes files to disk
Documentation states;

They don't need to be written to disk - they are just held in memory and served directly to the browser.

(Ref: https://github.com/aspnet/JavaScriptServices/tree/dev/src/Microsoft.AspNetCore.SpaServices#webpack-dev-middleware)

Currently when I run the project (unedited, generated React/Redux template) files are written to the dist.

Apologies if I'm not running it correctly! 😄

Functional impact

Files are written to disk, they shouldn't be.

Minimal repro steps

  1. dotnet new reactredux
  2. dotnet run
  3. View wwwroot/dist, directory and contents will be visible

Expected result

dist directory to be non-existant, files to be served without disk write.

Actual result

dist and all files are built and written to disk.

Further technical details

When using Webpack's dev server/middleware files are not written to disk, they are served from memory only. I can only assume there is a config issue somewhere.

*Originally created by @simmo on 1/16/2018* ### Title **Webpack dev middleware writes files to disk** Documentation states; > They don't need to be written to disk - they are just held in memory and served directly to the browser. (Ref: https://github.com/aspnet/JavaScriptServices/tree/dev/src/Microsoft.AspNetCore.SpaServices#webpack-dev-middleware) Currently when I run the project (unedited, generated React/Redux template) files are written to the dist. Apologies if I'm not running it correctly! 😄 ### Functional impact Files are written to disk, they shouldn't be. ### Minimal repro steps 1. `dotnet new reactredux` 2. `dotnet run` 3. View `wwwroot/dist`, directory and contents will be visible ### Expected result `dist` directory to be non-existant, files to be served without disk write. ### Actual result `dist` and all files are built and written to disk. ### Further technical details When using Webpack's dev server/middleware files are not written to disk, they are served from memory only. I can only assume there is a config issue somewhere.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#224
No description provided.