What's your biggest current challenge? Have your say in Community Polls along the right column.

How to use source maps with Shopify automatic CSS minification?

How to use source maps with Shopify automatic CSS minification?

joaohorta
Shopify Partner
2 0 5

Hello, I use SASS and noticed recently that my css seems to be minified and not have any source maps. I think it is related with this recent change Shopify now serves minified CSS files automatically.

Given that is really helpful to be able to inspect elements and see the original SASS que generated that specific style css, how can this be achieved with the Shopify automatic minification?

Is there an alternative like turning off this feature for some themes? (e.g. development themes)

Thank you!

Replies 2 (2)

jonaholsson
Tourist
5 0 1

Did anyone find a solution to this?

Best,
Jonah

carlosrosa
Shopify Partner
3 0 2

Hey  Joaohorta, did you find any solution for your problem ? today I just had the same problem as you, when I did the command line "shopify app build" I just realized the only file generated is my-extension.js, the file .map file is not generating.