luoyang-screen/config/webpack/persistentCache/createEnvironmentHash.js

10 lines
195 B
JavaScript
Raw Permalink Normal View History

2024-07-29 14:10:07 +08:00
'use strict';
const { createHash } = require('crypto');
module.exports = env => {
const hash = createHash('md5');
hash.update(JSON.stringify(env));
return hash.digest('hex');
};