UNPKG

webpack-uglify-js-plugin

Version:
13 lines (9 loc) 249 B
const crypto = require('crypto'); const fs = require('fs'); module.exports = function genHash(content) { const hash = crypto .createHash('sha1') .update(content) .digest('hex'); return hash; };