From f9e9ab784d6a789e9c0b6dd17aeb87e77c121155 Mon Sep 17 00:00:00 2001 From: ycjcl868 <45808948@qq.com> Date: Fri, 20 Dec 2019 16:37:10 +0800 Subject: [PATCH] fix: site script --- netlify.toml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/netlify.toml b/netlify.toml index c327618038..6ea217a1d5 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,6 +1,6 @@ [build] publish = "_site" - command = "npm run compile && npm run dist && npm run site" + command = "npm run site" [[redirects]] from = "/docs/resource/download" diff --git a/package.json b/package.json index 40646155e8..9661e823f7 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "pretty-quick": "pretty-quick", "pub": "antd-tools run pub", "prepublish": "antd-tools run guard", - "site": "cross-env NODE_ICU_DATA=node_modules/full-icu bisheng build --ssr -c ./site/bisheng.config.js && node ./scripts/generateColorLess.js", + "site": "cross-env npm run compile && npm run dist && NODE_ICU_DATA=node_modules/full-icu bisheng build --ssr -c ./site/bisheng.config.js && node ./scripts/generateColorLess.js", "sort": "npx sort-package-json", "sort-api": "antd-tools run sort-api-table", "start": "rimraf _site && mkdir _site && node ./scripts/generateColorLess.js && cross-env NODE_ENV=development bisheng start -c ./site/bisheng.config.js",