Skip to content

Commit d5142a3

Browse files
committed
fix: build engine if front-end build
1 parent fa0ed9f commit d5142a3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

front-end/h5/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"dev": "vue-cli-service serve",
77
"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",
99
"lint": "vue-cli-service lint --fix",
1010
"deploy": "rm -rf dist && npm run build:editor && npm run build:engine && ./deploy.sh",
1111
"test:e2e": "vue-cli-service test:e2e",

luban-h5.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# @Author: ly525
55
# @Date: 2020-01-10 22:23:34
66
# @LastEditors : ly525
7-
# @LastEditTime : 2020-01-11 09:11:36
7+
# @LastEditTime : 2020-01-11 09:37:40
88
# @FilePath: /luban-h5/luban-h5.sh
99
# @Github: https://github.com/ly525/luban-h5
1010
# @Description: Do not edit
@@ -54,7 +54,7 @@ luban_h5_init() {
5454
cd ${cur_dir}
5555

5656
# 在后端目录,编译后台管理系统
57-
cd back-end/h5-api && yarn && yarn build
57+
cd back-end/h5-api && yarn && NODE_ENV=production yarn build
5858
cd ${cur_dir}
5959
}
6060

0 commit comments

Comments
 (0)