You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature, report a bug or ask a question?
report a bug
What is the current behavior?
Always get sprite.svg filename
What is the expected behavior?
Loader gets filename from options and plugin uses it
If the current behavior is a bug, please provide the steps to reproduce, at least part of webpack config with loader configuration and piece of your code.
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
The text was updated successfully, but these errors were encountered:
MarmaladeKnight
changed the title
Unable to modify change spriteFilename if loader rule has resourceQuery while using SpriteLoaderPlugin
Unable to modify spriteFilename if loader rule has resourceQuery while using SpriteLoaderPlugin
Jul 11, 2022
Do you want to request a feature, report a bug or ask a question?
report a bug
What is the current behavior?
Always get sprite.svg filename
What is the expected behavior?
Loader gets filename from options and plugin uses it
If the current behavior is a bug, please provide the steps to reproduce, at least part of webpack config with loader configuration and piece of your code.
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
As I debug problem is in this line
svg-sprite-loader/lib/utils/get-matched-rule-5.js
Line 46 in 051b82e
It works only for the first rule and thats why several lines later plugin can`t find the rule for itself and sets it as empty object
...And little bit later in this condition plugin use default sprite name
svg-sprite-loader/lib/utils/mapped-list.js
Line 91 in 4a3d105
The text was updated successfully, but these errors were encountered: