I am looking forward for some help. I developed an application customizer to inject JS and CSS. I am using the
"includeClientSideAssets": true
to get my stuff within the sppkg. In addition to that I am using
"skipFeatureDeployment": true
and
"@microsoft/sp-core-library": "^1.10.0".
As far as I know SharePoint 2019 only supports SPFx up to 1.4.1. So the feature to deploy an app "tenant wide" (or any appropriate alternative) is not accessible.
Am I right?
My target is to only add the application customizer to the root web of any site collection to inject the JS and CSS to the root web and all subwebs.
Is there a solution without adding the UserCustomAction
periodically to any web using a PowerShell script (or adding it by hand)?
By now I am a bit confused. Up to today my solution comes without the ClientSideInstance.xml
and I added the app manually. Code is working fine. From now I added the ClientSideInstance.xml
and upload the app. Leave the point "Adding the App to all sites" free and adding the app now manually - ERROR.
Clicking "Adding the App to all sites" after uploading the app and using a PnP-Powershell
to add the custom action to any site - everything is fine.
So back to my question.
Is there a solution to add the app once on the root web of each site collection and get the JS and CSS on all subwebs too?
Thanks for help.