8
0
handan-screen/config/webpack/persistentCache/createEnvironmentHash.js
2024-09-09 15:22:48 +08:00

10 linhas
195 B
JavaScript

'use strict';
const { createHash } = require('crypto');
module.exports = env => {
const hash = createHash('md5');
hash.update(JSON.stringify(env));
return hash.digest('hex');
};