Inlined SVG extracted with invalid filename #13835
Comments
|
shouldn't the asset stay an data url anyway? Did you change that to an real asset? |
|
I used the filter url function to not include it, but I feel webpack should do that by default ootb. I hand the realized it happened until our window build broke. |
|
@hipstersmoothie I don't understand you, what is mean |
You can setup it on own side |
|
Yeah I understand that and I've done that, I just think that this isn't an error a user should have to encounter and notice, webpack + it's loaders out of the box shouldn't produce this bug. Or there should at least be a note somewhere in the docs explaining that you must configure it. I'm willing to make a PR for either approach. The bug happens here when webpack runs |
We should fix it, and yes you can send a PR to docs |

Bug report
What is the current behavior?
When using
css-loaderwith an SVG that is inlined the extracted SVG gets an invalid filenameIf the current behavior is a bug, please provide the steps to reproduce.
css-loaderassetModuleFilenameto somethingThe image gets placed in the output with a filename like
svg>.abc123which breaks on a windows machine.What is the expected behavior?
Webpack produces a file that doesn't break windows with
.svgas the extension or omits the inlined SVG entirelyOther relevant information:
webpack version: 5.45.1
Node.js version: 14.16.0
Operating System: Windows
The text was updated successfully, but these errors were encountered: