Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wwwroot/dist vs ClientApp/dist folder in .NETCore

What is the difference between "wwwroot/dist" and "ClientApp/dist" folders after running this command and how to use them correctly?

dotnet publish -c Release
like image 463
MAbdulHalim Avatar asked Dec 06 '17 22:12

MAbdulHalim


1 Answers

The wwwroot/dist folder is basically an exposed folder that stores the compiled distributions of all pre-compiled javascript or scss code in the other parts of the project.

The ClientApp/dist folder stores all the compiled distributions of all the frontend framework classes/files within the ClientApp folder (i.e. AngularJS code transpiled docs).

.NET Core SPA apps usually route to the ClientApp/dist folder when performing Dependency injection on the SPA side of things.

like image 82
Nicholas Avatar answered Oct 26 '22 18:10

Nicholas