Get livereload to work with Sails.js

后端 未结 2 1623
情歌与酒
情歌与酒 2020-12-17 03:40

I am new to both Sails and grunt so I might be missing the obvious. I am trying to automatically refresh my sails app in the browser whenever files change.

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-17 04:05

    After lost some time trying do this with sails/grunt, i install the livereload browser plugin (http://livereload.com/extensions/) for .html, js and css and the package (https://www.npmjs.com/package/sails-hook-autoreload) for the models and controllers.

    Works like a charm.

提交回复
热议问题