Skip to content

SPFx 1.8 version

Latest
Compare
Choose a tag to compare
@hugoabernier hugoabernier released this 17 Apr 01:14
9b3a43d

Manual deployment

  1. Upload the react-application-injectcss.sppkg from the sharepoint folder to your App catalog.
  2. When prompted to deploy to all sites, choose the option that suits your needs.

Automated deployment

  1. If you have not done so already, install the PnP PowerShell Cmdlets
  2. Edit the DeployApplicationCustomizer.ps1 file and change the $tenantUrl variable to point to your tenant.
  3. From a PowerShell console, run the DeployApplicationCustomizer.ps1 script to automatically deploy to all sites.
  4. You will be prompted to enter your credentials.
  5. After providing your credentials, the extension will be deployed

Enabling the customizer

  1. Edit the EnableApplicationCustomizer.ps1 file and change the $tenantUrl variable to point to your tenant.
  2. In the same file, change the $customCSSUrl variable to point to your custom CSS URL.
  3. From a PowerShell console, run the EnableApplicationCustomizer.ps1 script to automatically deploy to all sites.
  4. You will be prompted to enter your credentials.
  5. After providing your credentials, the extension will be deployed using your custom CSS URL.

Disabling the extension

  1. Edit the DisableApplicationCustomizer.ps1 file and change the $tenantUrl variable to point to your tenant.
  2. From a PowerShell console, run the DisableApplicationCustomizer.ps1 script to automatically deploy to all sites.
  3. You will be prompted to enter your credentials.
  4. If prompted to remove the application, choose Yes.
  5. The extension will be removed.