style: 优化日志输出,补充目标目录信息,移除多余调试日志

- 为目录清空相关日志添加目标目录路径
- 移除冗余的plugins.length调试日志
This commit is contained in:
2026-07-04 09:30:57 +08:00
parent 2d7d7f731c
commit eb46748ae0

View File

@@ -376,9 +376,9 @@ class VersionInjectPlugin {
if (fs.existsSync(destDir)) {
try {
fs.rmSync(destDir, { recursive: true, force: true });
console.log(' ✅ 已清空目标目录');
console.log(` ✅ 已清空目标目录 ${destDir}`);
} catch (cleanErr) {
console.warn(` ⚠️ 清空目标目录失败,将尝试覆盖: ${cleanErr.message}`);
console.warn(` ⚠️ 清空目标目录 ${destDir} 失败,将尝试覆盖: ${cleanErr.message}`);
}
}
@@ -425,7 +425,6 @@ module.exports = {
try {
const webpack = require('webpack');
const stubPath = path.resolve(__dirname, 'common/js/empty-lang-stub.js');
console.log(`[vue.config] config.plugins.length = ${config.plugins.length}`);
if (webpack?.NormalModuleReplacementPlugin){
config.plugins.push(
new NormalModuleReplacementPlugin(