From 61329b93611ad697b1d27d6a12fe2943a675a301 Mon Sep 17 00:00:00 2001 From: "Howard.Zuo" Date: Wed, 2 Sep 2020 10:54:08 +0800 Subject: [PATCH] chore: improve compile time in dev mode --- generators/app/templates/package.json.vm | 10 +++++----- package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/generators/app/templates/package.json.vm b/generators/app/templates/package.json.vm index ef87a8c..a9bbdf7 100644 --- a/generators/app/templates/package.json.vm +++ b/generators/app/templates/package.json.vm @@ -4,7 +4,7 @@ "description": "Scaffold for umi based project", "scripts": { "start": "umi dev", - "build": "umi build" + "build": "UMI_ENV=prod umi build" }, "license": "MIT", "husky": { @@ -25,7 +25,7 @@ "@commitlint/cli": "^9.1.2", "@commitlint/config-conventional": "^9.1.2", "@types/classnames": "^2.2.10", - "@types/jest": "^26.0.10", + "@types/jest": "^26.0.12", "@types/js-cookie": "^2.2.6", "@umijs/plugin-access": "^2.3.1", "@umijs/plugin-antd": "^0.8.0", @@ -33,12 +33,12 @@ "@umijs/plugin-locale": "^0.10.1", "@umijs/plugin-model": "^2.5.3", "@umijs/plugin-request": "^2.5.0", - "@umijs/test": "^3.2.17", + "@umijs/test": "^3.2.19", "husky": "^4.2.5", "lint-staged": "^10.2.13", "react-coding-style": "^1.1.1", - "umi": "^3.2.17", - "umi-plugin-antd-theme": "^2.1.2" + "umi": "^3.2.19", + "umi-plugin-dynamic-antd-theme": "^3.0.1" }, "dependencies": { "ahooks": "^2.5.0", diff --git a/package.json b/package.json index 730a83b..aaea0d9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "generator-umi", - "version": "4.4.2", + "version": "4.4.3", "description": "umi project generator", "scripts": { "docs:dev": "vuepress dev docs",