Commit 47fd90fd by zhangxingmin

push

parent 5aebf8df
FROM node:16
WORKDIR /app
COPY package*.json ./
# 先安装构建工具
RUN npm install -g @vue/cli @dcloudio/uni-cli
RUN npm install --include=dev
# 安装依赖
COPY package*.json ./
RUN npm install --legacy-peer-deps
# 3. 复制源代码
# 复制源码并构建
COPY . .
# 4. 执行构建
RUN npm run build:h5
# 生产阶段
......
......@@ -15,6 +15,7 @@
]
},
"dependencies": {
"@dcloudio/vue-cli-plugin-uni": "^3.0.0-27920200625001",
"crypto-js": "^4.2.0",
"dayjs": "^1.11.13",
"echarts": "^5.4.1",
......@@ -22,10 +23,11 @@
"nanoid": "^4.0.0"
},
"devDependencies": {
"less": "^4.3.0",
"@dcloudio/vue-cli-plugin-uni": "^3.0.0-27920200625001"
"less": "^4.3.0"
},
"scripts": {
"build:h5": "./node_modules/.bin/uni build --platform h5"
"dev": "uni -p",
"build:h5": "vue-cli-service uni-build --platform h5",
"build:weapp": "uni build --platform mp-weixin"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment