tasks/webfont.js
function getHash() {
			// Source SVG files contents
			o.files.forEach(function(file) {
				md5.update(fs.readFileSync(file, 'utf8'));
			});

			// Options
			md5.update(JSON.stringify(o));

			// grunt-webfont version
			var packageJson = require('../package.json');
			md5.update(packageJson.version);

			// Templates
			if (o.template) {
				md5.update(fs.readFileSync(o.template, 'utf8'));
			}
			if (o.htmlDemoTemplate) {
				md5.update(fs.readFileSync(o.htmlDemoTemplate, 'utf8'));
			}

			return md5.digest('hex');
		}
function getHash() {
			// Source SVG files contents
			o.files.forEach(function(file) {
				md5.update(fs.readFileSync(file, 'utf8'));
			});

			// Options
			md5.update(JSON.stringify(o));

			// grunt-webfont version
			var packageJson = require('../package.json');
			md5.update(packageJson.version);

			// Templates
			if (o.template) {
				md5.update(fs.readFileSync(o.template, 'utf8'));
			}
			if (o.htmlDemoTemplate) {
				md5.update(fs.readFileSync(o.htmlDemoTemplate, 'utf8'));
			}

			return md5.digest('hex');
		}
function getHash ( ) { // Source SVG files contents o . files . forEach ( function ( file ) { md5 . update ( fs . readFileSync ( file , 'utf8' ) ) ; } ) ; // Options md5 . update ( JSON . stringify ( o ) ) ; // grunt-webfont version var packageJson = require ( '../package.json' ) ; md5 . update ( packageJson . version ) ; // Templates if ( o . template ) { md5 . update ( fs . readFileSync ( o . template , 'utf8' ) ) ; } if ( o . htmlDemoTemplate ) { md5 . update ( fs . readFileSync ( o . htmlDemoTemplate , 'utf8' ) ) ; } return md5 . digest ( 'hex' ) ; }
Calculate hash to flush browser cache.
Hash is based on source SVG files contents, task options and grunt-webfont version.

@return {String}
Calculate hash to flush browser cache . Hash is based on source SVG files contents task options and grunt - webfont version .