css-reloader
css-reloader copied to clipboard
Doesn't work locally
Hello!
Thank you for the very useful add-on!
Unfortunately it doesn't work on any of my local websites. I'm using LAMP. Why is that? Can I get it to work?
Hi,
Which browser are you using?
In Chrome urls that begins with file:// isn't working because the extension couldn't though the extension-validation. But since your are a local web-server, is shouldn't be this problem.
Can you provide me with an sample url?
Thanks,
-Kenneth
Hello!
Thank you for the quick reply!
I'm using Firefox.
I have setup my hosts file to look on my machine instead of internet for domains that have the extension .local. In apache setup I add virtual host for each website/local domain telling it which folder to use as root etc.
This means when I enter http://example.local in my browser it serves me my local website. This is where the extension doesn't work. On production sites hosted on the internet the same websites work. So this seems to be a local problem.
Is there anything else I can do to test?
Mihaela
Hmm, can you provide me with an URl to your stylesheet? It could contain some characters which is troubling for the script.
Seems weird since I'm appending a new querystring with a randon timestamp to ensure that it's a new url that hasn't been cached.
You can get to the online versions of my local websites: http://www.nordff.org - here CSS is compressed, may be a problem http://prkos.biz/drupal
There's a lot of sheets on both sites (when uncompressed), maybe that's the problem. Can using @import be a problem? I think the this is used to make IE work because you can only link no more than 30 sheets in IE.
Ahhh, it's because of the @imports. The current version of the extensions is finding all tags and updating the urls. The stylesheets isn't parsed, and therefore @import's isn't updated.
Guess this should be on the roadmap.
That would be great!
Thanx
agree. i have that problem too (see drupal7 (cms) stylesheet implementations ^^)
I'm not using @import and I also can't reload CSS files in Firefox 9.0.1 (using file:/// protocol).