front/scripts/postbuild-cleanup-dist.js
zzh a7993c12b6
All checks were successful
Build and Deploy Front / deploy (push) Successful in 4m18s
feat: 品牌/收款码图可清除,未配置显示 LOGO 文字
去掉本地默认品牌图回退;配置弹窗原生拖拽预览并支持清除;登录/顶栏/官网/侧栏统一走配置图。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-19 19:30:02 +08:00

13 lines
451 B
JavaScript

import fs from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
const dist = path.join(root, 'dist');
const legacyLoginDir = path.join(dist, 'login');
if (fs.existsSync(legacyLoginDir)) {
fs.rmSync(legacyLoginDir, { recursive: true, force: true });
console.log('[postbuild] removed dist/login (conflicts with SPA route /login)');
}