Saturday, November 27, 2021

Sitecore SXA 10.2 Improvements: CSS and JS Source Maps

It is a copy of my article initially placed here to keep all things in one place.

Remember my article about enabling of Source Map for Sitecore SXA?

November 2021 Sitecore SXA 10.2 was released. But if you check the list of new features/improvements in release notes, you will not find one important improvement for developers: Now enabling CSS Source Maps becomes much easier!

Steps that you need:

  1. Open gulp\config.js file
  2. Set sassSourceMap value to true
  3. Set js>JsSourceMap value to true
  4. Set css>cssSourceMap value to true
  5. Restart gulp

If you will look inside SXA Source Maps implementation, you will see that implementation is very similar to what I did for earlier Sitecore versions. Probably SXA Developers Team was inspired by my previous post.

Enjoy your work on the SXA theme with enabled source maps! And remember, if you need to get the source maps for Sitecore SXA earlier 10.2 version, you can use this article.

1 comment:

  1. Great to see the updates on Sitecore SXA 10.2! Making CSS Source Maps easier to enable is definitely a win for developers. Speaking of updates, have you ever considered a Sitecore to WordPress migration? It's a topic that's gaining traction among businesses looking for more flexibility and simplicity in their content management systems. Just a thought! Keep up the awesome work on sharing valuable insights.

    ReplyDelete