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?

1 Answer 1


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

yo @microsoft/sharepoint


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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