kss icon indicating copy to clipboard operation
kss copied to clipboard

Compiling with base64 in CSS

Open AlexandreBroudin opened this issue 10 years ago • 3 comments

The compilation is very very very very ... very very very very ... very .. very very very very ... very ... slow when you have base64 datas in your CSS.

Like this one, it import a base64 font:

 src: url(~"data:font/truetype;charset=utf-8;base64,AAEA…") format('truetype');

Also, its a .less file

AlexandreBroudin avatar Nov 22 '13 17:11 AlexandreBroudin

Do you have any information on the file size of your css file, or maybe have an example file that's slow?

kneath avatar Nov 25 '13 05:11 kneath

Of course, here's the gist: https://gist.github.com/AlexandreBroudin/7640659/raw/4f0cafe1b7e0fcd1526613af97ef52f5e772b4cd/Font+awesome+base64

AlexandreBroudin avatar Nov 25 '13 12:11 AlexandreBroudin

Rad :zap: — I'm not sure when I'll have the time to look into this, but now we have a test case to run against.

kneath avatar Nov 25 '13 19:11 kneath