ASP.NET Core NPM and webpack / gulp

1

I created a project in asp.net core using the empty template ( dotnet new web ).

As I researched, to add packages like Bootstrap or jquery , we have to use NPM, which basically adds package.json to the project root and keys basic.

Using the command npm install jquery and npm install bootstrap I install the packages I need, however it creates the node_modules folder and the default folder for the javascript and css is the wwwroot folder.

Now I need to know how to copy only the required files from the node_modules folder, I know there is gulp and webpack for this. But I have not been able to implement these tools in my project.

So my question is how to implement gulp or webpack in a ASP.NET Core project.

And which one is most recommended to use.

    
asked by anonymous 20.03.2018 / 12:42

0 answers