Monday, June 28, 2021

How to change the solution name in SPFx? How to change SPFx app version? How to publish SPFx app assests to Office 365 CDN? How to change the package (.sppkg) file name in SPFx?

 Ans:-

The answer for all these questions resides in same file in the location config/package-solution.json

{  

  "$schema": "https://dev.office.com/json-schemas/spfx-build/package-solution.schema.json",  

  "solution": {  

    "name": "spfx-1-client-side-solution",  

    "id": "4b4c2d39-b01c-48c9-894d-22781dda4fb6",  

    "version": "0.0.0.3",  

    "includeClientSideAssets": true,  

    "skipFeatureDeployment": true  

  },  

  "paths": {  

    "zippedPackage": "solution/spfx-1.sppkg"  

  }  

In the above snippet I have highlighted answers for the above questions, where you could change the version/solution name/publish in office 365 CDN/package name.

No comments:

Post a Comment