If "isPath" is set, I had problems with grunt.file.expand returning an array, which grunt.dirname did not appear to like and threw out the error:
Warning: Path must be a string. Received [ 'index.html' ] Use --force to continue.
Converting the array to a String with toString seems to solve the issue. In addition if there are older versions of grunt/node that aren't having grunt.file.expand pass an array, calling toString() on a String should have no effect. This should make this backwards compatible.
If "isPath" is set, I had problems with grunt.file.expand returning an array, which grunt.dirname did not appear to like and threw out the error:
Warning: Path must be a string. Received [ 'index.html' ] Use --force to continue.
Converting the array to a String with toString seems to solve the issue. In addition if there are older versions of grunt/node that aren't having grunt.file.expand pass an array, calling toString() on a String should have no effect. This should make this backwards compatible.