All checks were successful
Build and Deploy Front / deploy (push) Successful in 4m18s
去掉本地默认品牌图回退;配置弹窗原生拖拽预览并支持清除;登录/顶栏/官网/侧栏统一走配置图。 Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
451 B
JavaScript
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)');
|
|
}
|