Rebuild the Webpack vendor config file

Now we need to force Webpack to recompile the vendor configuration file, because that's not something it does automatically. To do that, we have three options:

  • Delete the /wwwroot/dist/ folder
  • Update the .csproj project configuration file to do that on each build
  • Create a batch file

Let's see each one of them in detail.

Get ASP.NET Core 2 and Angular 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.