Reputation: 171
I am collaborating with Senior Developers and quite embarrassed to ask why the code in all the .css
files is on one line?! At first I thought it was minified but when I went to unminify it it said Unrecognized format
. How do I work with these files? As far as I can see it's ONLY the .css
files.
Upvotes: 1
Views: 2616
Reputation: 171
It can be the case they are using a CSS compiler (like SASS or LESS), in that case the files won't have .css extension but .SASS, .SCSS, .LESS which will be compiled into a single CSS. - Teknotica
Tecknotica's speculation was correct. So to be more specific this is how you would work with these files given a similar situation. You don't actually write CSS directly into the CSS file but instead add your CSS to a SCSS file that then gets compiled into the CSS file using a tool such as Grunt. The CSS is all on one line in the CSS file (the one you don't directly write to) apparently because it reduces to the number of requests to get the bits. Thanks for everyone's help & advice.
Upvotes: 1
Reputation: 98
Ew, that's annoying. Usually when I come across that, I just do a search and replace for " ; " and add a break beneath it to help organize everything. Hope that helps!
Upvotes: 0