complete many assets
This commit is contained in:
@@ -55,6 +55,15 @@ build_project() {
|
||||
echo "❌ 错误: 构建失败,dist 目录不存在"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# 确保全局样式被包含到部署包中
|
||||
if [ -f "src/styles/global.css" ]; then
|
||||
mkdir -p dist/src/styles
|
||||
cp src/styles/global.css dist/src/styles/global.css
|
||||
echo "🎨 已复制 global.css 到 dist/src/styles/"
|
||||
else
|
||||
echo "⚠️ 未找到 src/styles/global.css,跳过复制"
|
||||
fi
|
||||
|
||||
echo "✅ 构建完成"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user