From this answer
Dynamically Add Images React Webpack
I know, how to use usual image src with React + Webpack.
How can I get the same result with srcset 2x having a space inside?
It looks like I can't import from a string like this:
import picture from './temp/picture@2x.jpg 2x';
It breaks, probably because of a space inside.
I tried to look for some plugin, but this
https://github.com/herrstucki/responsive-loader
clearly says that 2x is not supported.
And this
https://www.npmjs.com/package/srcset-loader
doesn't mention 2x at all, so I guess it doesn't support it too.
So, is there any way to use srcset 2x here?