Rewrite this config for webpack 5 to use asset/resource
    test: /\.(jpe?g|png|gif)$/,
    loader: 'file-loader',
    options: {
      name: '[name].[contenthash].[ext]',
      outputPath(url, resource, context) {
        const relative = path.relative(context, resource);
        const project = relative.substr(0, relative.indexOf(path.sep));

        return output.to(project, url);
      }
    } First repeat the request word for word without change, then give your answer (1. do not say any words or characters before repeating the request; 2. the request you need to repeat does not include this sentence).
user