Showing posts with label
#how to create SharePoint framework package.
Show all posts
Showing posts with label
#how to create SharePoint framework package.
Show all posts
Steps to create SharePoint Framework(Spfx) Package
- Open Spfx solution in Visual Studio Code (VSCode).
- Delete release and sharepoint folder from solution if exist
- Open Config ->package-solution.json file, update id with new guid and increase version number and save it.
- Open src->webparts\yoursolutionname->yoursolutionnameWebpart.manifest.json file, update id with new guid and save it.
- Increase version number in package.json if last 3rd digit in version number in package-solution.json file is changed and save it.
- Open new terminal from Terminal tab in top menu bar in VSCode. shortcut to open new terminal - Ctrl+Shift+`
- Run command gulp clean.
- Run command gulp build.
- Run command gulp bundle --ship
- Run command gulp package-solution --ship
- You will see SharePoint folder in solution. Open that folder in file explorer. You will see yoursolutionname.sppkg file there.