Commit d5142a3adfef02079c6c0d7f2f90646b4ad0b570
Committed by
小小鲁班
1 parent
fa0ed9fa
fix: build engine if front-end build
Showing
2 changed files
with
3 additions
and
3 deletions
front-end/h5/package.json
| ... | ... | @@ -5,7 +5,7 @@ |
| 5 | 5 | "scripts": { |
| 6 | 6 | "dev": "vue-cli-service serve", |
| 7 | 7 | "serve": "vue-cli-service serve", |
| 8 | - "build": "npm run build:editor && npm run build:editor", | |
| 8 | + "build": "npm run build:editor && npm run build:engine", | |
| 9 | 9 | "lint": "vue-cli-service lint --fix", |
| 10 | 10 | "deploy": "rm -rf dist && npm run build:editor && npm run build:engine && ./deploy.sh", |
| 11 | 11 | "test:e2e": "vue-cli-service test:e2e", | ... | ... |
luban-h5.sh
| ... | ... | @@ -4,7 +4,7 @@ |
| 4 | 4 | # @Author: ly525 |
| 5 | 5 | # @Date: 2020-01-10 22:23:34 |
| 6 | 6 | # @LastEditors : ly525 |
| 7 | - # @LastEditTime : 2020-01-11 09:11:36 | |
| 7 | + # @LastEditTime : 2020-01-11 09:37:40 | |
| 8 | 8 | # @FilePath: /luban-h5/luban-h5.sh |
| 9 | 9 | # @Github: https://github.com/ly525/luban-h5 |
| 10 | 10 | # @Description: Do not edit |
| ... | ... | @@ -54,7 +54,7 @@ luban_h5_init() { |
| 54 | 54 | cd ${cur_dir} |
| 55 | 55 | |
| 56 | 56 | # 在后端目录,编译后台管理系统 |
| 57 | - cd back-end/h5-api && yarn && yarn build | |
| 57 | + cd back-end/h5-api && yarn && NODE_ENV=production yarn build | |
| 58 | 58 | cd ${cur_dir} |
| 59 | 59 | } |
| 60 | 60 | ... | ... |