-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Use encodeURIComponent instead of replace in tailwind config #6038
Comments
At least replace will make it shorter instead of encoding unwanted components? |
Yes it does. But I did change this in my code for a reason and I cannot remember why. It must have been an SVG with something that wasn't escaped in it, causing the resulting CSS to be invalid. Maybe we can actually do both? |
@kuon I am fine with calling encodeURIComponent but we would need to know why we are calling it. So if you can recall the particular SVG or example, that would be very helpful. :) |
Ok, I found why I did that. I have some SVG with color in them, like I think it makes sense to change it and add |
So I think we can add encodeURICOmponent. A PR is welcome! |
Is there any reason to use replace instead of encodeURIComponent for svg url in tailwind config?
phoenix/installer/templates/phx_assets/tailwind.config.js
Line 52 in 06e3525
Isn't
Better?
The text was updated successfully, but these errors were encountered: