1

I have noticed that every time I create a new SPFx web part, using Yeoman for generating a project, the folder size is 300+ mb. I noticed the majority of the size comes from the node_modules where all of the dependencies reside from jquery to weather. Is there any way to get a minimized version of these, or can I have one main version that references these from all other web part projects?

2

You can add new web part on your existing solution by executing below command in the existing solution directory.

yo @microsoft/sharepoint

https://blog.mastykarz.nl/add-second-web-part-sharepoint-framework-project/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.