ASP.NET Core offers the Microsoft.AspNetCore.SpaServices package, which helps its interaction with WebPack. It contains an ASP.NET Core middleware that takes care of launching the WebPack build each time the project is run in development mode, passing it useful options and possibly enabling WebPack Hot Modules Replacement (simply called HMR). With HMR set to on, WebPack automatically detects changes in all source files processed and automatically sends patches to the client in order to immediately update all assets on the client side. Thus, if a CSS file is packaged with WebPack (see the Bundling CSS, images, and HTML section), any change made in it is immediately visible in the page shown by the development browser.
Before modifying the project of the previous section, let's make a copy of it. Then right-click on the dependencies...