61fab923eb
There was a bug when the user defines a width on the Image component, but a larger size image is requested. This is because the browser uses the `srcset` to decide which image size to request and we had the srcset basically hardcoded. This PR fixes the behavior so that the `srcset` will never be larger than the `width` defined on the component. It also fixes a bug where the preload srcset did not match the img srcset. - Related to #18147 - Related to #18122
7 lines
139 B
JavaScript
7 lines
139 B
JavaScript
module.exports = {
|
|
images: {
|
|
sizes: [480, 1024, 1600, 2000],
|
|
path: 'https://example.com/myaccount/',
|
|
loader: 'imgix',
|
|
},
|
|
}
|