Forum Discussion

Samira_Rahme's avatar
Samira_Rahme
Copper Contributor
Jan 24, 2024

SPFX client-side

Hello, 
I have a question related to SPFx; can we add multiple web part in one package to the app catalog?

2 Replies

  • Samira_Rahme 

    Absolutely!  From the command line, make sure you are in the root folder of your solution and run the "yo @microsoft/sharepoint" command. SPFx recognizes you are already in an existing solution and just ask you what you want to add. Choose webpart or anything else you want to add to the current solution.

     

    When you bundle and package your solution, all components are included in the solution and made available when you load your .sppkg file into the app catalog.

     

    Good luck!
    Don

    If my answer helps solve or resolve your issue, please consider clicking Mark as Best Response & Like. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it a Like.

    • Samira_Rahme's avatar
      Samira_Rahme
      Copper Contributor
      Yes, this will allow me to add one web part using its .sppkg file. If I have a solution with multiple web parts, each having its own .sppkg file or package, and I want to add one package for the entire solution, is that possible?

Resources