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
My mistake😄 Yes, we need improve this, should be easy