Skip to content

Commit

Permalink
docs: support deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed May 31, 2021
1 parent 2984816 commit 33cffa8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .umirc.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 24,8 @@ const tailPkgList = pkgList

const isProduction = process.env.NODE_ENV === 'production';

const isDeploy = process.env.SITE_DEPLOY === 'TRUE';

export default {
title: 'ProComponents',
mode: 'site',
Expand Down Expand Up @@ -103,9 105,7 @@ export default {
}
: false,
hash: true,
// ssr: {
// devServerRender: false,
// },
ssr: isDeploy ? {} : undefined,
exportStatic: {},
targets: {
chrome: 80,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 10,7 @@
"build-lib": "cross-env BUILD_TYPE=lib father-build && cross-env BUILD_TYPE=es father-build",
"changelog": "pro-changelog",
"createRelease": "node ./scripts/createRelease.js",
"deploy": "npm run site && gh-pages -d ./dist",
"deploy": "cross-env SITE_DEPLOY='TRUE' npm run site && gh-pages -d ./dist",
"lint": "eslint --cache --ext .js,.jsx,.ts,.tsx --fix --format=pretty ./packages && npm run lint:prettier",
"lint:prettier": "npm run prettier && git diff && prettier --version && prettier --check \"packages/**/**.{js,jsx,tsx,ts,less,md,json}\" --end-of-line auto",
"prettier": "prettier --write \"**/**.{js,jsx,tsx,ts,less,md,json}\"",
Expand Down

0 comments on commit 33cffa8

Please sign in to comment.