feat(index): 首页标题连击5次显示构建版本信息\nfix(scripts): explorer使用spawn避免GUI进程阻塞\nfix(index): version.json运行时读取,不依赖构建时require
This commit is contained in:
@@ -89,7 +89,9 @@ async function commonPatch(mode = 'production') {
|
||||
// 4) 处理 vendor.js:在开头追加 require 语句(如果还没有的话)
|
||||
const vendorExists = await exists(vendorPath);
|
||||
if (!vendorExists) {
|
||||
console.warn(`目标 vendor.js 不存在,跳过追加 require。路径: ${vendorPath}`);
|
||||
console.warn(`⚠ 目标 vendor.js 不存在,跳过追加 require。路径: ${vendorPath}`);
|
||||
console.warn(' → 请先执行 HBuilder 构建(uniapp 构建),产生 vendor.js 后再运行此脚本。');
|
||||
console.warn(' → version.json 已生成,可在首页连击 5 次标题查看版本信息。');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user