search

Home  >  Q&A  >  body text

node.js - gulp browser-sync 刷新后台代码 运行之后很慢

  1. 我是用nodejs 启动了一个后台服务 localhost:3000

  2. 然后我改动 views/*.ejs 的文件的时候;

  3. browser-sync 倒是响应了;在刷新浏览器; 可是刷新的很慢;不知道为什么;

ringa_leeringa_lee2778 days ago837

reply all(1)I'll reply

  • 黄舟

    黄舟2017-04-17 14:32:57

    Take a look at the run log. Did you change one page but all pages were refreshed? So it becomes very slow?
    If so, you can use gulp-changed to refresh only the changed files

    reply
    0
  • Cancelreply