Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
feat(h5): 支持部署到 github pages 服务
Browse files Browse the repository at this point in the history
  • Loading branch information
QingyunYang committed Sep 5, 2022
1 parent b77bc4d commit 0786b89
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const config = {
},
},
h5: {
publicPath: '/',
publicPath: '/taro-react-boilerplate',
staticDirectory: 'static',
postcss: {
autoprefixer: {
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"dev:qq": "npm run build:qq -- --watch",
"dev:jd": "npm run build:jd -- --watch",
"dev:quickapp": "npm run build:quickapp -- --watch",
"deploy:h5": "gh-pages -d dist/h5",
"commit": "git cz",
"prepare": "husky install",
"release": "release-it",
Expand Down Expand Up @@ -122,6 +123,7 @@
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-storybook": "^0.6.4",
"gh-pages": "^4.0.0",
"husky": "^8.0.1",
"lint-staged": "^12.4.3",
"npm-check-updates": "^16.0.6",
Expand Down
52 changes: 52 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0786b89

Please sign in to comment.