yarn add image-webpack-loader
config.module.rules.push({ test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, use:[{ loader: 'image-webpack-loader' options: {bypassOnDebug: true} }] })