C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Develop And Package Client Side Web Part Files To A SharePoint Library
WhatsApp
Srujana Anishetty
8y
5
k
0
0
25
Blog
Create client side web part.
Md DeploywebparttoSP
Cd DeploywebparttoSP
Yo @microsoft/sharepoint
Run the code to open Visual Studio code.
Navigate to the
write-manifests.json
file in config folder to update the CDN path with SharePoint Library path.
Run "
gulp bundle –ship"
command to bundle the files.
Files generated will be available in temp\deploy. Upload them to SharePoint library.
Run
"gulp-package gulp package-solution"
to generate the app file. These files will be available in SharePoint\solution folder.
Upload the sppkg file to the pap catalog. It will prompt for trusting the solution and provide an option to deploy. Click "Deploy".
Go to SharePoint site -> Add an app-> click on the app and install it.
Edit a SharePoint page. Now, you should be able to see the client side webpart created
After adding the web part successfully, the below screen will be displayed.
Client Side Web Part Files
SharePoint Library
SharePoint
Recommended related topics
Membership not found