fix: 修复SCSS编译和微信扫码功能
Some checks failed
构建并部署前端到生产环境 / build-and-deploy (push) Failing after 56s

This commit is contained in:
sexygoat
2026-04-17 14:30:19 +08:00
parent 404daa4b6d
commit bbb840e521
3 changed files with 22 additions and 1 deletions

15
.dockerignore Normal file
View File

@@ -0,0 +1,15 @@
node_modules
.git
.gitignore
*.md
.vscode
.idea
dist
unpackage
.DS_Store
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.env.local
.env.*.local

View File

@@ -18,9 +18,15 @@ COPY package.json ./
# 安装所有依赖
RUN npm install --legacy-peer-deps
# 安装 git (用于获取 commit 信息)
RUN apk add --no-cache git
# 复制源代码
COPY . .
# 列出文件确认复制成功
RUN ls -la
# 构建 H5 生产版本
RUN npm run build:h5

View File

@@ -1,7 +1,7 @@
{
"scripts": {
"dev:h5": "uni",
"build:h5": "UNI_INPUT_DIR=. uni build -p h5"
"build:h5": "uni build -p h5"
},
"devDependencies": {
"@dcloudio/types": "3.4.19",