1

Hey web Dev out there.

What do you think about this trick to implement live reload when you are modifying the css of a webpage

You setup a fake form that you submit every like 2s or 1s(depending on your need) by using JavaScript

I know it sounds ridiculous 🤣🤣🤣🤣🤣

Comments
  • 5
    VsCode -> live server -> save file -> page reloads by its self.

    As long as it's html/csss/js it will work fine and not server rendered.
  • 1
    @C0D4 but for this one you need to struggle around with Apache server and so on. In other to have a local server running.

    Unless Vscode implemented that

    I don't use vscode
  • 4
    @Afrographics is it just frontend rendering - static site?

    Then no you don't need to use apache / Nginx as it will inject a NodeJS server into your page (but not into your actual code) and reload on file change.

    Here's the plugin
    https://ritwickdey.github.io/vscode...
  • 2
    @C0D4 thanks

    I'll give it a try
Add Comment