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:
- Open
gulp\config.js
file - Set
sassSourceMap
value totrue
- Set
js>JsSourceMap
value totrue
- Set
css>cssSourceMap
value totrue
- 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.
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