the server uses koa
, uses pug
template engine, and renders the template in the way of ctx.render ("layout", data)
). How to refresh the front-end page automatically after changing the front-end pug
, less
, js
files?
the server uses koa
, uses pug
template engine, and renders the template in the way of ctx.render ("layout", data)
). How to refresh the front-end page automatically after changing the front-end pug
, less
, js
files?
how to automatically refresh the front-end page after changing the front-end pug, less, and js files?
gulp
to monitor files, gulp-nodemon
to automatically restart the backend, and gulp-livereload
to automatically update the front end. have you seen this technology anywhere else? Update the static file in real time after modification. That's not about asking for static files all the time.