We use Unicorn in our project, and we are saving the pre-optimized-min.yml files in source control. Here is the exclude predicate we have for this file:
<exclude childrenOfPath="/sitecore/media library/Themes/<Name>/<Name>/styles">
<except name="pre-optimized-min" />
</exclude>
We use a standard SXA CLI Setup.
The problem is that after minification, SOMETIMES, the yml file is saved with a GUID at the end of the name:
This is causing issues in our CI/CD pipeline as the file is not recognized and our styles are not picked up correctly.
Any ideas on this could be happening?