Skip to content

Commit

Permalink
Add compatibility for building this project with pnpm. (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
kerwin612 committed May 28, 2024
1 parent 37763d9 commit 4148f29
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ yarn-error.log
/coverage
.idea
yarn.lock
pnpm-lock.yaml
package-lock.json
*bak

Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,15 @@
"dva": "^2.2.3",
"dva-loading": "^2.0.3",
"enquire-js": "^0.2.1",
"history": "^5.3.0",
"lodash": "^4.17.10",
"lodash-decorators": "^6.0.0",
"moment": "^2.30.1",
"omit.js": "^1.0.0",
"path-to-regexp": "^2.1.0",
"prop-types": "^15.5.10",
"qs": "^6.5.0",
"rc-drawer": "^7.1.0",
"react": "^16.14.0",
"react-captcha-code": "^1.0.7",
"react-container-query": "^0.11.0",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</head>

<body>
<div id="httpPath" style="display: none" th:text="<%='$'%>{domain}">${process.env.NODE_ENV === 'production' ? '' : 'http://localhost:9095'}</div>
<div id="httpPath" style="display: none" th:text="<%='$'%>{domain}">${process.env.NODE_ENV === 'production' ? '' : '.'}</div>
<div id="root"></div>
</body>

Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import "./polyfill";
import dva from "dva";

import createHistory from "history/createHashHistory";
import { createHashHistory as createHistory } from "history";
// user BrowserHistory
// import createHistory from 'history/createBrowserHistory';
import createLoading from "dva-loading";
Expand Down

0 comments on commit 4148f29

Please sign in to comment.