diff --git a/package.json b/package.json index d90831e..4b2b9c0 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,8 @@ "scripts": { "dev": "vite", "build": "vue-tsc && vite build && ts-node-esm script/build.ts", - "build-gh": "vue-tsc && vite build --base=/HumanBreak/ && ts-node-esm script/build.ts", - "build-local": "vue-tsc && vite build --base=/ && ts-node-esm script/build.ts", + "build-gh": "vue-tsc && vite build --base=/HumanBreak/ && ts-node-esm script/build.ts 1", + "build-local": "vue-tsc && vite build --base=/ && ts-node-esm script/build.ts 1", "preview": "vite preview", "preview-node": "cd dist && node server.cjs", "update": "ts-node-esm script/update.ts", diff --git a/script/build.ts b/script/build.ts index 51fd96f..6f1e8a8 100644 --- a/script/build.ts +++ b/script/build.ts @@ -39,7 +39,7 @@ import * as rollup from 'rollup'; }); }) ); - await fse.remove('./dist/maps/'); + if (process.argv[2] !== '1') await fse.remove('./dist/maps/'); // 在线查看什么都看不到,这编辑器难道还需要留着吗? await fse.remove('./dist/_server'); await fse.remove('./dist/editor.html'); diff --git a/src/data/desc.json b/src/data/desc.json index c113a16..6fbe0bf 100644 --- a/src/data/desc.json +++ b/src/data/desc.json @@ -387,7 +387,7 @@ "
", "
", "本塔的楼层传送器是一个集分区、小地图、楼层传送、浏览地图于一体的多功能楼传。", - "你也可以点击这里查看所有区域的缩略图。", + "你也可以点击这里查看所有区域的缩略图。", "下面是楼传的具体说明:", "
", "
",