1
I’m having trouble using Yarn/NPM in ASP.Net Core.
I am installing packages as follows: (Example installing Jquery)
Yarn: yarn add jquery
NPM: npm install jquery
Everything normally occurs, the problem is that the files go to the folder node_modules
, while in ASP.Net Core it is "necessary" that the files are in wwwroot
.
I would love to use the Bower, since it has how to define the directories of the installations, however it is not working and is recommending the use of Yarn.
So how could I install the packages to use in ASP.Net Core?
If possible, I would like the files to be installed on
wwwroot/lib
.I researched, but only found some things in English, but I’m horrible in English and the translators of the browsers don’t seem to be so much better, it gets all confused.
Vinicius, set up npm or Yarn is easy but to copy pro wwwroot you have to use something like webpack
– Fabri Damazio
@Fabridamazio I used the Gulp to return this, but I’ll see about the Webpack, maybe it has a better way of doing it. Thanks a lot :D
– Vinícius Lima
@Viníciusfile something new?
– Pablo Tondolo de Vargas