diff --git a/package.json b/package.json index a478f14944891584342080f671b4181740f3dbe9..0f6364bb307bf6d52b62921da225823b6ac9ce80 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "description": "An out-of-box UI solution for enterprise applications", "scripts": { "analyze": "cross-env ANALYZE=1 umi build", - "build": "umi build", + "build": "umi build && functions:build", "docker-hub:build": "docker build -f Dockerfile.hub -t ant-design-pro ./", "docker-prod:build": "docker-compose -f ./docker/docker-compose.yml build", "docker-prod:dev": "docker-compose -f ./docker/docker-compose.yml up", @@ -111,6 +111,7 @@ "merge-umi-mock-data": "^1.0.4", "mockjs": "^1.0.1-beta3", "prettier": "^1.16.4", + "serverless-http": "^1.9.1", "slash2": "^2.0.0", "stylelint": "^9.10.1", "stylelint-config-css-modules": "^1.3.0", @@ -122,8 +123,7 @@ "tslint": "^5.12.1", "tslint-config-prettier": "^1.17.0", "tslint-react": "^3.6.0", - "umi-plugin-ga": "^1.1.3", - "serverless-http": "^1.9.1" + "umi-plugin-ga": "^1.1.3" }, "optionalDependencies": { "puppeteer": "^1.12.1"