Posts

Showing posts from August, 2018

SXA and how I dealt with css/sass serialization conflicts

The Problem we were running into: We have several front end developers working on an SXA site I'm working on. But we started encountering conflicts all over the place with the scss files that are uploaded into the cms and serialized back down to yaml files. It was taking us 15 minutes at least to merge in changes between branches. We would have to resolve the conflicts and then just take source or destination on the yaml files representing the scss and css files. Then we would have to start gulp and go and save every file under the Theme to make sure they got uploaded into Sitecore so our serialized files were correct. Attempt 1: The first thing I did to try and fix the problem was to add a task to gulp to upload all the scss and css files into Sitecore. This sort of worked but was causing even more conflicts because it ended up changing the BlobId on the item even if the file was the same that was being uploaded. So we limped on with this for a little because it was stil