-
-
Notifications
You must be signed in to change notification settings - Fork 608
Loader fails on SVG definition rules with URL values #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That's the line responsible. What exactly doesn't work? I've added a test which confirms that this should work. |
The problem is that this reference is not to a file but to a definition in the SVG,
Are hash-first urls meant to be ignored or assumed to be shorthand for the current location? |
I looked into the part you pointed out, it seems that at that point the URL is already augmented: In the stylesheet (chart.less inside 'component/' folder):
|
Seems to be an issue with less.js, reported there in less/less.js#2320 Thanks! |
Anyway, thx for reporting 👍 |
Update README.md
This is an issue moved from less-loader after opening it there by mistake:
webpack-contrib/less-loader#25
The loader seems to break when styles include references to SVG definitions. I'm using the markers in the styles because I don't want to mess with the charting library I'm using but the loader breaks on the URL.
Marker definition:
Marker use:
Is there a way of ignoring some URL values in these rules or another way to prevent the loader from failing?
The text was updated successfully, but these errors were encountered: