Thursday, February 1, 2018

SXA Theme Upgrade Tip using SPE

In some recent conversations on Sitecore Slack Chat I needed to determine why a component script in SXA was not working as desired (broke). I decided to write a short PowerShell script in SPE to speed up the troubleshooting.

The following script is designed to compare two script directories under the specified themes and determines which ones have different file sizes.

Let's have a look at the sample output:

With this information you are hours ahead of where you would have been trying to figure out why the "component-carousel" works on my machine but not in production!