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

livereload 404s with relative css @imports #427

Closed
pascalpp opened this issue Apr 7, 2015 · 2 comments
Closed

livereload 404s with relative css @imports #427

pascalpp opened this issue Apr 7, 2015 · 2 comments

Comments

@pascalpp
Copy link

pascalpp commented Apr 7, 2015

I have a CSS file at /css/main.css which imports other CSS files in subdirectories of /css, using relative @import statements. When I make edits, livereload makes a request for /lib/text.css, which should be /css/lib/text.css, resulting in a 404.

image

I thought maybe this was an issue with my app stack, which is complicated, so I made a new barebones repo which demonstrates the issue, using grunt-contrib-connect and grunt-contrib-watch.

The demo repo is https://github.com/pascalpp/grunt-watch-reload-issue. To replicate the issue, clone that repo locally, run npm install and grunt, and then open http://localhost:9090 and follow the instructions shown there.

If anyone has any insight on this issue, I'd really appreciate it.

@pascalpp
Copy link
Author

pascalpp commented Apr 7, 2015

I modified my demo repo to connect to the standalone LiveReload server (using the GUI Mac app) and this issue still occurs. So I guess this is an issue with livereload itself, not grunt watch. Will seek resolution elsewhere.

@pascalpp pascalpp closed this as completed Apr 7, 2015
@pascalpp
Copy link
Author

pascalpp commented Apr 7, 2015

If anyone else is experiencing this issue, you can follow livereload/livereload-js#37

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

1 participant