-
-
Notifications
You must be signed in to change notification settings - Fork 158
fallback loader options #118
fallback loader options #118
Comments
@Sparki2002 PR welcome 👍 |
I want this feature too. |
This feature would be really nice. |
@Sparki2002 I found that you can set any fallback options like this:
|
Works great, thanks @fengcen! @evilebottnawi: I think adding this to the readme would be helpful for future users. |
I believe, that also it would be good to have feature to chain fallback loaders.
So I need this code: ...
test: /\.(gif|png|jpe?g)$/,
loader: 'url-loader'
options: {
limit: 1000,
fallback: [
'file-loader',
{
loader: 'image-webpack-loader'
options: {
// ...optimizing options
}
}
]
}
} |
@queses no, please read how works loaders |
@fengcen @TimHolzherr yep, feel free to send PR |
Resolves #118 It is now possible to explicitly specify options for the fallback loader. The new definition (schema) for the fallback option is a lighter variant of the one for module.rules.use. See schemas/WebpackOptions.json in the webpack repository.
Hey @evilebottnawi watch out: I don't see the default fallback=file-loader to be respected, just lost 1 hour on this to find out I had to explicitly set it like this (I'm on
|
@damianobarbati can you create new issue with minimum reproducible test repo? |
good |
Make it possible to add options to the fallback loader
e.g.
The text was updated successfully, but these errors were encountered: