Grunt Watch repeatedly showing “Warning: must provide pattern”

我怕爱的太早我们不能终老 提交于 2019-12-04 06:20:06

I just encountered a similar problem when I had been editing my Gruntfile and left a field (that should have had a file pattern) blank.

Check your Gruntfile for an empty file field.

In my specific example:

wiredep: {
    options: {
        overrides: {
          "jquery-ui": {
              "main": [
                 "jquery-ui.js",
                 "themes/base/jquery-ui.css",
                 ""
              ]
          }
        }
    }
}

Note the empty string above. That generated an error very similar to yours. It seems that Grunt doesn't tell you where the error is, unfortunately. You'll just need to scan through your Gruntfile manually to find the error.

connect:dev is the problem. Remove that and it should work fine.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!