首页 > Error: Files glob patterns specified did not match any files

Error: Files glob patterns specified did not match any files

每次运行npm run dev
都会出现 Error: Files glob patterns specified did not match any files

fuhaodeMacBook-Pro:learnRedux fuhao$ npm run dev

> learnRedux@1.0.0 dev /Users/fuhao/Workspace/fuhao/learnRedux
> node server.js

Listening at http://localhost:8010
webpack building...

**Error: Files glob patterns specified did not match any files**

webpack built dc5674d00a5ffc86c117 in 2415ms

不知道该如何解决这个错误,但是这个错误并不影响整个项目
这是我项目的github


我觉得问题可能在webpack/config-maker.js里:

plugins: [
    new styleLintPlugin({
        configFile: '.stylelintrc',
        syntax: 'less',
        files: './src/components/**/*.less'
    })
]

路径不对吧,怎么着也应该是../src/components/**/*.less。这么改之后路径虽然对了,但你的src/components目录下面确实没有任何的less文件,所以什么也没匹配到不是错,当然也不会影响你的项目了

【热门文章】
【热门文章】