Giter VIP home page Giter VIP logo

Comments (7)

blaise-io avatar blaise-io commented on September 28, 2024

You cannot reload on a backend change, but the backend change usually results in an updated source file URL and you could monitor that file.

from live-reload.

tomsquest avatar tomsquest commented on September 28, 2024

Hi Blaise,

Yes, that was I am aiming at : reloading when the source change.

For info, I have a Go backend that produce html, which is reloaded on change (inotifywait magic).

In the screenshot above, I tried with http://localhost:4200/search/products/ (which was the url of my browser). But this was not working. Same with a trailing *, with or without the trailing /.
Is there something special to do ?

Thanks a lot.

from live-reload.

blaise-io avatar blaise-io commented on September 28, 2024

So you want to update the page when the page itself is updated?

Does Host URL: http://localhost:4200/*, Source file URL: http://localhost:4200/* work for you?

from live-reload.

tomsquest avatar tomsquest commented on September 28, 2024

No, the page is not updated on html change with this config. Css is.

  • There is the badge with value 2 corresponding to the 2 css files loaded with the page.
  • Here are the network call after a page reload, 3 resources (one html, 2 css) :
    image
  • Updated version to 1.8.1 and accepted the permission change (and restarted Firefox)

Is there a way to report the monitored resources in Firefox ?

Thanks Blaise.

from live-reload.

blaise-io avatar blaise-io commented on September 28, 2024

from live-reload.

blaise-io avatar blaise-io commented on September 28, 2024

@tomsquest I fixed this in Live Reload 1.8.2. If a source URL matches the host URL the page will monitor itself. Can you confirm it works?

from live-reload.

tomsquest avatar tomsquest commented on September 28, 2024

Hi @blaise-io ,

It works with 1.8.2 !

Thanks a lot for the work (I read a bit of the code and there is much more that I thought !).

Regards,
Tom

from live-reload.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.