Skip to content
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

Old versions of stylesheet are not being removed during livereload #9

Closed
sagannotcarl opened this issue Jul 26, 2013 · 2 comments
Closed

Comments

@sagannotcarl
Copy link

It appears that livereload.js removes old versions of the stylesheet but it is not working for me. I didn't notice this being a problem until I tried deleting a line of CSS and it appeared that liveupdate was not working. In fact it was working but the new stylesheet didn't have the declaration and the previous one did so it was still applying.

Other than that the reload all works great.

My css files are added with <style>@import url("http://example.com/sites/all/themes/omega/css/modules/system/system.base.css?mqgw4v");</style> etc. (it's a drupal site and this is how it's handled by default). Looking at livereload.js maybe it's only looking for <link> tags? But maybe I'm misreading the code, that is just a guess.

Thanks!
Colin

@andreyvit
Copy link
Member

Hey! Yeah, I may only be looking at @import tags in <link>'ed stylesheets, even though I distinctly remember fixing Drupal compatibility issues. Can you test if the LiveReload app handles it any better? Trial ver here. Guard might be using an older version of livereload.js.

@sagannotcarl
Copy link
Author

Looks like this is actually an old Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=202138

Everything works fine in Chrome. Thanks for the great project!

Colin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants