Closed ruslansagitov closed 9 years ago
There’s a possibility that the list of source files could be empty. Review:
taskName: { src: 'src/**/*.js', dest: 'build/dist.js' }
If there’re no *.js files in the src directory, grunt-newer fails in the anyNewer function, on fs.stat(paths[complete], …), with:
*.js
src
fs.stat(paths[complete], …)
Fatal error: path must be a string
Right now, “path” is undefined.
Thanks for the fix @ruslansagitov. I've pulled this in as part of #63.
There’s a possibility that the list of source files could be empty. Review:
If there’re no
*.js
files in thesrc
directory, grunt-newer fails in the anyNewer function, onfs.stat(paths[complete], …)
, with:Right now, “path” is undefined.