7 lines
256 B
JavaScript
7 lines
256 B
JavaScript
|
var crypto = require('crypto'),
|
||
|
packageInfo = require('../../../package.json');
|
||
|
|
||
|
module.exports = function generateAssetHash() {
|
||
|
return (crypto.createHash('md5').update(packageInfo.version + Date.now()).digest('hex')).substring(0, 10);
|
||
|
};
|