less.js icon indicating copy to clipboard operation
less.js copied to clipboard

data-uri svg output

Open gregBerthelot opened this issue 4 years ago • 1 comments

Hi

According to http://lesscss.org/functions/ data-uri('image/svg+xml;charset=UTF-8', 'image.svg');should output url("data:image/svg+xml;charset=UTF-8,%3Csvg%3E%3Ccircle%20r%3D%229%22%2F%3E%3C%2Fsvg%3E");

Tested here https://codepen.io/ZeGregg/pen/RwoOqLG?editors=1100 and compiled css output background-image: url("https://getuikit.com/assets/uikit/src/images/icons/cloud-download.svg");

Any help would be appreciated Greg

gregBerthelot avatar Mar 17 '21 12:03 gregBerthelot

You can dig the source code.

https://github.com/less/less.js/blob/master/packages/less/src/less/functions/data-uri.js#L6-L74

iChenLei avatar Jun 12 '21 08:06 iChenLei