summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vue.config.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/vue.config.js b/vue.config.js
index 0268002d..de0ad12a 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -55,6 +55,11 @@ module.exports = {
},
productionSourceMap: false,
configureWebpack: (config) => {
+ const crypto = require('crypto');
+ const crypto_orig_createHash = crypto.createHash;
+ crypto.createHash = (algorithm) =>
+ crypto_orig_createHash(algorithm == 'md4' ? 'sha256' : algorithm);
+
const envName = process.env.VUE_APP_ENV_NAME;
const hasCustomStore = process.env.CUSTOM_STORE === 'true' ? true : false;
const hasCustomRouter = process.env.CUSTOM_ROUTER === 'true' ? true : false;