let string = ''
for (let filename of files) {
string += fs.readFileSync(filename, 'utf8')
}
const lessHash = crypto.createHash('sha256').update(string).digest("hex");
if (lessLastHash === lessHash) {
grunt.log.writeln(`less hash is the same - ${lessHash}`)
return lessFiles
}/* else if (fs.existsSync(filesLessCacheBuild) && fs.existsSync(filesLessCache) && fs.readFileSync(cssPostfixFilename, 'utf8').toString() === lessHash) {
grunt.log.writeln(`less hash is the same in different process, using file less cache - ${lessHash}`)
return fs.readFileSync(filesLessCache, 'utf8').toString();
}*/
grunt.log.writeln(`less hash generating new build - ${lessHash}`)
lessLastHash = lessHash;