Is there a way to config Asset Modules so that there’s no files emitted

Feature request

What is the expected behavior?
Need an option for Asset Modules (type: 'asset/resource') to not emit files

What is motivation or use case for adding/changing the behavior?
file-loader has this option which is useful for server side packages

How should this be implemented in your opinion?
Add a new option to Asset Modules, such like

module.exports = {
  // ...
  module: {
    rules: [
      {
        test: /\.png/,
        type: 'asset/resource',
        emitFile: false
      }
    ]
  },
};

Are you willing to work on this yourself?
no

1 possible answer(s) on “Is there a way to config Asset Modules so that there’s no files emitted