xuchang-new/config/webpack/persistentCache/createEnvironmentHash.js
2023-11-09 15:34:52 +08:00

10 rivejä
186 B
JavaScript

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