To index.js thus connecting pictures:
You may notice that images are imported from various folders, one of backgrounds, and another of icons. After treatment webpack loads all the images in one folder dist/img
And it is necessary to shipped the pictures on the structure, which was prior to the treatment
This code handles pictures:
How can we preserve the structure?