Gruntjs 在grunt中如何使用connect livereload?

Gruntjs 在grunt中如何使用connect livereload?,gruntjs,livereload,grunt-contrib-connect,Gruntjs,Livereload,Grunt Contrib Connect,我努力让我的服务器重新加载,所以我按照一些链接,并最终在 但是,当我尝试在grunt文件中使用grunt代码时 connect: { options: { port: 3000, hostname: 'localhost' }, dev: { options: { middleware: function (connect) { return [ require('connect-livereload')(),

我努力让我的服务器重新加载,所以我按照一些链接,并最终在

但是,当我尝试在grunt文件中使用grunt代码时

connect: {
  options: {
    port: 3000,
    hostname: 'localhost'
  },
  dev: {
    options: {
      middleware: function (connect) {
        return [
          require('connect-livereload')(), // <--- here
          checkForDownload,
          mountFolder(connect, '.tmp'),
          mountFolder(connect, 'app')
        ];
      }
    }
  }
}
connect livereload
的文档太可怕了,没有提到
checkForDownload
mountFolder
应该给我什么

有人知道吗

Warning: checkForDownload is not defined Use --force to continue.

Aborted due to warnings.