I use nodejs to debug the code (instead of the usual Firefox console, you just need to output the result of console.log to the node). Is there a possibility of similarity livereload (or watch) for a node? Each time typing CTRl-b> l> up arrow> enter and then returning back to the editor CTRL-b> h is tiring. I use vim + tmux.
- There are so many different libraries in Google are searched for on any request. There are modules for gulp / grunt, there are separate libraries, for example: github.com/napcs/node-livereload - bitrixhater
- Your option involves using a browser and server. I only have an editor and a terminal. Like a babel or coffescript compilation, node compiles them in live mode without a browser and server. - Eugene Megger
|
1 answer
I use a package installed like this: npm install -g node-live-reload. When I got acquainted with js on the server, I read this article.
- Although the link can find the answer to the question, it is better to point out the most important thing here, and give the link as a source. If the page to which the link leads will be changed, the response link may become invalid. - From the queue of checks - Dmitry D.
- npm packages have linking if they change, habr - here without comments, the article is old, not going anywhere (except with habr). - Artem Tkachenko
|