From 10aaee0e27b99e3ef451b689d7e095a281653128 Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Thu, 19 Apr 2018 16:31:46 +0800 Subject: [PATCH] Copy netlify.toml to _site --- netlify.toml | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 1bf9b6e26d..d798928b10 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,6 @@ +[Settings] + ID = "7b0f5d08-e5b9-4de9-94e9-dac3e33c3b75" + [build] publish = "_site" command = "npm run site" diff --git a/package.json b/package.json index 09d5455e54..9e5507b9a2 100644 --- a/package.json +++ b/package.json @@ -185,7 +185,7 @@ "start": "rimraf _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 && node ./scripts/generateColorLess.js", - "predeploy": "antd-tools run clean && npm run site", + "predeploy": "antd-tools run clean && npm run site && cp netlify.toml _site", "deploy": "bisheng gh-pages --push-only", "pub": "antd-tools run pub", "prepublish": "antd-tools run guard",