Delete the /wwwroot/dist/ folder

If we take a look at our project configuration file--the projectName.csproj in the project's root folder--we can see that the Webpack vendor configuration file is built in debug mode only if the /wwwroot/dist/ folder doesn't exist:

[...]<Target Name="DebugRunWebpack" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('wwwroot\dist') ">  <!-- Ensure Node.js is installed -->  <Exec Command="node --version" ContinueOnError="true">    <Output TaskParameter="ExitCode" PropertyName="ErrorCode" />  </Exec> <Error Condition="'$(ErrorCode)' != '0'" Text="Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt ...

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.