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",