Moving away from Bower (discontinued) to use Yarn/Npm instead (.Net Core MVC) VS2017

后端 未结 3 1188
我在风中等你
我在风中等你 2020-12-29 18:42

I started working on a .Net Core application around 1 year ago. I used .Net Core to set up my project in visual studio and used Bower to manage my client side packages. It s

3条回答
  •  醉话见心
    2020-12-29 19:06

    Yarn and npm are very much the same thing. You can use either yarn or npm to achieve the exact same goal, installing node packages. This is similar to what bower did for you previously, except that bower added them to your project web assets instead of node_modules.

    WebPack is a tool purely for building client side web assets and bundle them with the dependancies.

    If you do not have a need for this, continue to use bower or Nuget for legacy projects. For new projects, use WebPack and yarn/npm.

提交回复
热议问题