From fe7386746cfe7123c7628749d501a3141b19cf6c Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Fri, 10 Nov 2017 17:47:48 +0800 Subject: [PATCH] site: clean cached before start, close: benjycui/bisheng#113 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b6c969a38f..4d42d082f4 100644 --- a/package.json +++ b/package.json @@ -173,7 +173,7 @@ "dist": "antd-tools run dist", "compile": "antd-tools run compile", "tsc": "tsc", - "start": "node ./scripts/generateColorLess.js && cross-env NODE_ENV=development bisheng start -c ./site/bisheng.config.js", + "start": "rm -rf _site && node ./scripts/generateColorLess.js && cross-env NODE_ENV=development bisheng start -c ./site/bisheng.config.js", "start:preact": "node ./scripts/generateColorLess.js && cross-env NODE_ENV=development REACT_ENV=preact bisheng start -c ./site/bisheng.config.js", "site": "cross-env NODE_ENV=production bisheng build --ssr -c ./site/bisheng.config.js", "deploy": "antd-tools run clean && npm run site && node ./scripts/generateColorLess.js && bisheng gh-pages --push-only",