config.module.rules.push(
    {
        test: /\.(jpe?g|png|gif)$/i,
        loader: 'file-loader'
    }
);