-
Notifications
You must be signed in to change notification settings - Fork 46
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
root relative urls in css are being meesed up #87
Comments
@diegodorado Thanks you for reporting the issue. Could you please post the "messed up" URL that it generated? |
Sure: say I have a style.css file inside wp-content/themes/mytheme/ with the following rule
(I know, I know.... bad practices) then, after minit run, it concat
Anyway, good or bad practice, I think that following urls shouldnt be touched:
|
Great, thank you @diegodorado! That will help during testing. |
@diegodorado I was in your shoe. That is why I developed a ultra-simplified but proper theme options page. |
And again: great work... i ve been trying out several popular plugins but this is the only only that gave me a single js and a single css output, without breaking the site...I was going to do it by myslef, but you saved me a lot of work. |
@szepeviktor , sorry, i dont get it, what does proper theme options page do with this respect? |
If you have an options page you don't have to hardcode |
I have to change minit-css.php on line 88, because root relative urls were being messed up.
this is what i changed:
Note the
|\/
addition to the regex, to avoid replacing root relative urls.I understand that having root relative urls in css isnt a very good practice, at least for wordpress, but it happened that i already have them.
Beside that, the plugin is absolutly great as simple! Just what i needed
The text was updated successfully, but these errors were encountered: