From 3b513a652d848d1839df99d6f76dc93dcff5d9ff Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 3 Sep 2018 17:29:00 +0800 Subject: [PATCH] Fix APP_TYPE error in windows, close #2126 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 544de3d1..75d84303 100644 --- a/package.json +++ b/package.json @@ -6,10 +6,10 @@ "scripts": { "precommit": "npm run lint-staged", "presite": "npm run generate-mock && cd functions && npm install", - "start": "APP_TYPE=site umi dev", + "start": "cross-env APP_TYPE=site umi dev", "start:no-mock": "cross-env MOCK=none umi dev", "build": "umi build", - "site": "npm run presite &&APP_TYPE=site npm run build && firebase deploy", + "site": "npm run presite && cross-env APP_TYPE=site npm run build && firebase deploy", "analyze": "cross-env ANALYZE=1 umi build", "lint:style": "stylelint \"src/**/*.less\" --syntax less", "lint": "eslint --ext .js src mock tests && npm run lint:style", -- GitLab