grunt-data-uri icon indicating copy to clipboard operation
grunt-data-uri copied to clipboard

Windows relative file path and slash\backslash bug

Open vvelar opened this issue 10 years ago • 1 comments

needle C:!WORK\project\img\common\prev.png Ignore: ../../img/common/prev.png

data-uri.js line around 90 if (haystack.indexOf(needle) !== -1) { // never here }

vvelar avatar Nov 28 '14 08:11 vvelar

Found replacing line 81 with this works:

fixedUri = uri.indexOf('/') === 0 ? '../' + uri : uri;

tcmorris avatar Apr 15 '15 14:04 tcmorris