Closed ephys closed 7 years ago
awesome! 🎉 Thanks so much :)! Will merge this before it gets old, if you dont mind, there might be some stuff that could be unified to reduce duplication?
Cheers!
Of course, feel free to point out which parts you'd like to see unified :)
Related issue: https://github.com/timse/srcset-loader/issues/6
List of changes:
placeholder
can now be used even if sizes is not specified. The original image will be returned along with the placeholder.placeholder
now accepts the width of the placeholder as a parameter.sizes
now accepts"default"
as a possible value, which adds the original image to the list of sources.lightweight
option, which disables generating the data that can be computed at runtime:out.srcSet
is removed from the output as it can be computed usingout.sources
out.placeholder
does not return an SVG anymore, only the raw image in base64.srcset-loader/runtime
to generate both the srcSet string and the svg.placeholder.color
now returns the alpha channel as a float instead of an int.