Auto-reload browser when I save changes to html file, in Chrome?

后端 未结 23 2137
半阙折子戏
半阙折子戏 2020-12-12 11:46

I\'m editing an HTML file in Vim and I want the browser to refresh whenever the file underneath changes.

Is there a plugin for Google Chrome that will listen for ch

23条回答
  •  半阙折子戏
    2020-12-12 12:15

    In node.js, you can wire-up primus.js (websockets) with gulp.js + gulp-watch (a task runner and change listener, respectively), so that gulp lets your browser window know it should refresh whenever html, js, etc, change. This is OS agnostic and I have it working in a local project.

    Here, the page is served by your web server, not loaded as a file from disk, which is actually more like the real thing.

提交回复
热议问题