mirror of
https://github.com/openharmony/developtools_ace-js2bundle.git
synced 2026-07-18 16:54:27 -04:00
@@ -135,13 +135,7 @@ function validateCardModule(moduleJsonConfig) {
|
||||
}
|
||||
|
||||
function hashProjectPath(projectPath) {
|
||||
const ASSCIIStart = 65;
|
||||
const ASSCIIEnd = 90;
|
||||
const deviation = 1;
|
||||
process.env.hashProjectPath =
|
||||
String.fromCharCode(Math.floor(Math.random() * (ASSCIIEnd - ASSCIIStart + deviation) + ASSCIIStart)) +
|
||||
md5(projectPath).substring(9, 16) +
|
||||
String.fromCharCode(Math.floor(Math.random() * (ASSCIIEnd - ASSCIIStart + deviation) + ASSCIIStart));
|
||||
process.env.hashProjectPath = "_" + md5(projectPath);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in New Issue
Block a user