Copy netlify.toml to _site

pull/10158/head
Wei Zhu 7 years ago
parent fbad7efacb
commit 10aaee0e27

@ -1,3 +1,6 @@
[Settings]
ID = "7b0f5d08-e5b9-4de9-94e9-dac3e33c3b75"
[build] [build]
publish = "_site" publish = "_site"
command = "npm run site" command = "npm run site"

@ -185,7 +185,7 @@
"start": "rimraf _site && node ./scripts/generateColorLess.js && cross-env NODE_ENV=development bisheng start -c ./site/bisheng.config.js", "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", "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", "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", "deploy": "bisheng gh-pages --push-only",
"pub": "antd-tools run pub", "pub": "antd-tools run pub",
"prepublish": "antd-tools run guard", "prepublish": "antd-tools run guard",

Loading…
Cancel
Save