wujingjing
2024-09-09 a8af2bc8fda6e0311d49343dd6e154a6ef30348c
scripts/build.js
@@ -1,4 +1,6 @@
const path = require('path');
const fs = require('fs-extra');
const {
   copyFile,
   distDir,
@@ -11,7 +13,10 @@
   firstCustomerName,
   checkCustomer,
   formatDate,
   logSuccess
   logSuccess,
   logWarn,
   rootDir,
   publicDir
} = require('./helper');
const { execSync } = require('child_process');
if (customerList?.length !== 1) {
@@ -20,6 +25,9 @@
}
checkCustomer('npm run build', firstCustomerName);
copyFile();
// 更改 import.meta.glob
updateImportGlob();
try {