Sitecore SXA 10.2 Improvements: CSS and JS Source Maps
Anton Tishchenko
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.