Описание тега webpack-file-loader
Hadles such imports
import img from './file.png'
with this configuration
rules: [
{
test: /\.(gif|jpg|png)$/,
use: [
{
loader: 'file-loader'
}
]
}
and result: image files were copied to output folder.
Other application: copy css styles to the output folder adding the hash.