-
-
Notifications
You must be signed in to change notification settings - Fork 470
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
Does not apply objectUrl for <link>
tag when setting sourceMap: true
#265
Comments
<link>
tag when setting sourceMap: true
<link>
tag when setting sourceMap: true
@Aqours thank for issue, maybe best to wait when bug was fixed in |
@evilebottnawi can you provide a flag(e.g: |
@d3viant0ne what do you think about this issue? |
I stumbled across this issue, not because of loading delays, but because the sourcemap doesn't actually work. In your tests, was the sourcemap actually loading, or just the stylesheet? In my test, the stylesheet loads, but the styles in the firefox inspector point to the blob:null/ location, instead of the source file name. Additionally, it doesn't load the source file in the panel when you click on it. This works correctly in Chrome. It looks like mozilla closed the referenced ticket as invalid. Maybe worth revisiting it? (edit: or, it might be because I'm loading the html from file:/// Maybe Firefox just breaks for some reason in that case...) |
<link>
tag when setting sourceMap: true
<link>
tag when setting sourceMap: true
Why use Why not just use
and
in addStyles.js file. This is simple and have no problem. |
Move from: css-loader with
sourceMap: true
cause adding style tag delayedActually, above issue is caused by style-loader.
style-loader/lib/addStyles.js
Lines 354 to 363 in 378e906
I have an idea to resolve this issue, but it's not perfect. Consider to apply this solution.
My solution code:
Using code
link.href = 'data:text/css;base64,' + btoa(encodeURIComponent(css));
replace line 363.Test:
The text was updated successfully, but these errors were encountered: