sharepointvisual-studio-codeyospfx

Add new web part in Visual Studio Code project


I've created a new Sharepoint project with a HelloWorld web part using Yeoman in Visual Studio Code.

Now I want to add another web part to that project.

How do I add a web part using the same template in the src/webparts directory?


Solution

  • Oh well,

    It couldn't get any simplier.

    All I have to do is to call yo @microsoft/sharepoint once again in the existing project.