'webpack - Copy all images in folder and paste to other destination in build

I have an src/assets/img/emojis folder with a lot of pngs. In build i need to copy this folder to build/static/media/emojis. How to do this using webpack?

P.S: i'm using default create-react-app config



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source