0

I'm just starting to play with my first .Net Core applications and am trying to use npm for client-side libraries. They get added to node_modules but aren't "installed" to wwwroot. My question appears to have been asked before without answers:

I've tried to install cropperjs. That works insofar that the files are downloaded and added to the node_modules folder:

  • projectfolder
    • node_modules
      • cropperjs
        • dist
        • src
        • package.json, changelog, readme, license etc. files

Now how would I get these files into my wwwroot directory to use them? The documentation is slightly confusing I'm afraid. Thanks for enlightening me!

Community
  • 1
  • 1
ExternalUse
  • 2,053
  • 2
  • 25
  • 37

1 Answers1

0

Sorry, found the answers after seeing the list of "related questions" to my own. apparently, it is indeed required to copy the required files and folders over to the wwwroot location. These two questions yielded answers and comments that solve my question:

How to access node_modules folder from wwwroot in asp.net vnext project

How to use npm with ASP.NET Core

ExternalUse
  • 2,053
  • 2
  • 25
  • 37