css-reloader icon indicating copy to clipboard operation
css-reloader copied to clipboard

Doesn't work locally

Open prkos opened this issue 15 years ago • 8 comments

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?

prkos avatar Aug 23 '10 02:08 prkos

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

auchenberg avatar Aug 23 '10 07:08 auchenberg

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

prkos avatar Aug 23 '10 13:08 prkos

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.

auchenberg avatar Aug 24 '10 19:08 auchenberg

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.

prkos avatar Aug 24 '10 21:08 prkos

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.

auchenberg avatar Aug 30 '10 20:08 auchenberg

That would be great!

Thanx

prkos avatar Aug 31 '10 20:08 prkos

agree. i have that problem too (see drupal7 (cms) stylesheet implementations ^^)

e-anima avatar May 31 '11 20:05 e-anima

I'm not using @import and I also can't reload CSS files in Firefox 9.0.1 (using file:/// protocol).

alixaxel avatar Jan 30 '12 16:01 alixaxel