However when I push my changes to netlify the deployed site looks like this. Looks like the space between the icon and text has been removed. Any ideas how to get it to look like local?
This has been fixed upstream! But please be aware that it is bad practice to rely on whitespace in your design! I’ve added a fix because it is such a popular problem, but the fix should really be in adding padding to the <i> tag (or an explicit space using ).
I don’t think it’s a minifer’s role to have strong opinions about this. Also, a regular space is as explicit as – it’s a space with different semantics.
There are plenty of situations where using a space is the more practical approach – this is especially true with third-party content where editing it isn’t practical or possible.
I also don’t see much space-saving with being on the conservative side when removing this, either, as it should compress nicely gzipped.