UNPKG
@epmkit/cra-template-epm-plugin
Version:
latest (1.2.0)
1.2.0
1.1.4
1.1.3
The base template for EPM plugins.
@epmkit/cra-template-epm-plugin
/
template
/
config
/
webpack
/
persistentCache
/
createEnvironmentHash.js
10 lines
(7 loc)
•
186 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
'use strict'
;
const
{ createHash } =
require
(
'crypto'
);
module
.
exports
=
env
=>
{
const
hash =
createHash
(
'md5'
); hash.
update
(
JSON
.
stringify
(env));
return
hash.
digest
(
'hex'
); };