search

Home  >  Q&A  >  body text

node.js - nodemon可以实现修改js代码自动刷新,为什么修改页面文件不能刷新

nodemon可以实现修改js代码自动刷新,为什么修改页面文件不能刷新
如题,有没有一个可以监控页面的库呢

ringa_leeringa_lee2867 days ago697

reply all(1)I'll reply

  • 阿神

    阿神2017-04-17 15:09:16

    Nodemon itself is used for background js script monitoring. Is the page you are talking about a front-end script or a template file?
    Command line parameters can be specified to monitor other extensions: nodemon -e js,jade index.js
    For details, please refer to the official documentation:
    https://github.com/remy/nodemon

    If you are using webpack to package React, AngularJS, Vue.js, etc., you can use webpack-dev-server. The principle is

    reply
    0
  • Cancelreply