0f9ddf1e5d
* updating a switch into object literal and fixed a couple linter errors * added a comment about weird formatting * style: use lodash get * fix: pass eslint + puglint + jest
11 lines
204 B
JavaScript
11 lines
204 B
JavaScript
const crypto = require('crypto')
|
|
|
|
module.exports = {
|
|
/**
|
|
* Generate unique hash from page
|
|
*/
|
|
generateHash(assetPath) {
|
|
return crypto.createHash('sha1').update(assetPath).digest('hex')
|
|
}
|
|
}
|