less/less.js

[Feature Proposal] Better-optimized SVG encoding than URL-encoding and base64

Open

#3,105 建立於 2017年9月22日

在 GitHub 查看
 (1 留言) (3 反應) (0 負責人)JavaScript (16,977 star) (3,517 fork)batch import
good first issuelow priorityup-for-grabs

描述

I just came across this article which is relevant to Less w/ data-uri encoding: https://codepen.io/tigt/post/optimizing-svgs-in-data-uris

Basically, there was a discussion in the past about base64 vs. URL encoding for SVGs. (See: #2250 and #2184) There are a few additional optimizations in URL encoding that can make the encoding even smaller, as discovered by the research on that article. This is an improvement since URL-encoding by itself can inflate the output greater than base64 encoding.

貢獻者指南

[Feature Proposal] Better-optimized SVG encoding than URL-encoding and base64 · less/less.js#3105 | Good First Issue