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
{{ message }}
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.
On a build, both of these relative paths are replaced with the data URI representing arrow-right.svg
Actual Behavior
The first instance is correctly replaced
The data URI for this asset is discarded (assets are probably held in an array for replacement, array.pop() or similar is called and after the first replacement, discarded)
The second occurrence is incorrectly replaced with the data URI of whatever my next url-loader managed asset for replacement would be (in my case, a Facebook SVG icon)
This behavior continues for all later replacements, they are all one iteration off
In this scenario, .icon-arrow will have a data URI holding the Facebook icon, .facebook will show a Google Plus icon and .google-plus will be url(undefined);
How Do We Reproduce?
Include references to the same asset in multiple SASS/CSS url() definitions, review the output
The text was updated successfully, but these errors were encountered:
Something wrong in your configuration, please create minimum reproducible test repo
The data URI for this asset is discarded (assets are probably held in an array for replacement, array.pop() or similar is called and after the first replacement, discarded)
No logic with array in code because it is unnecessary
same issue here, and as discussed in the issue mentioned by @yenshih (thanks!), replacing extract-loader with extract-text-loader fixed this rather major bug.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Expected Behavior
url-loader
managed asset, for example:arrow-right.svg
Actual Behavior
url-loader
managed asset for replacement would be (in my case, a Facebook SVG icon)Code
webpack.config.js - https://gist.github.com/HARVS1789UK/345ddf7ff48839982a7d3eb744b4510c
In this scenario, .icon-arrow will have a data URI holding the Facebook icon, .facebook will show a Google Plus icon and .google-plus will be
url(undefined);
How Do We Reproduce?
Include references to the same asset in multiple SASS/CSS
url()
definitions, review the outputThe text was updated successfully, but these errors were encountered: