asset.js 223 B

123456789101112
  1. const crypto = require('crypto')
  2. /* global WIKI */
  3. module.exports = {
  4. /**
  5. * Generate unique hash from page
  6. */
  7. generateHash(assetPath) {
  8. return crypto.createHash('sha1').update(assetPath).digest('hex')
  9. }
  10. }