-
-
Notifications
You must be signed in to change notification settings - Fork 783
Closed
Labels
PR welcomefeatNew feature or requestNew feature or requestteamThe issue/pr is created by the member of Rspack.The issue/pr is created by the member of Rspack.
Description
What problem does this feature solve?
If set rules as asset/source, it would throw a Error: unreachable: unknow module type: asset/source
module.exports = {
module: {
rules: [
{
test: /\.jpg$/,
type: "asset/source",
generator: {
dataUrl: {
mimetype: "text/plain"
}
}
]
}
};What does the proposed API of configuration look like?
https://github.com/webpack/webpack/tree/main/test/configCases/contenthash/assets
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
PR welcomefeatNew feature or requestNew feature or requestteamThe issue/pr is created by the member of Rspack.The issue/pr is created by the member of Rspack.