Skip to content

Commit

Permalink
chore: 验证依赖缺失警告 (#6)
Browse files Browse the repository at this point in the history
* chore: 验证依赖缺失警告

ref: umijs/dumi#1904 (comment)

* chore: update lock file

* chore: update site
  • Loading branch information
Wxh16144 committed Oct 9, 2023
1 parent 82c4c3b commit 8831a33
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .dumirc.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig } from 'dumi';

const base = '/website/'
const base = process.env.MY_SITE_BASE ?? '/website/';

export default defineConfig({
locales: [
Expand All @@ -23,5 +23,6 @@ export default defineConfig({
},
extraRemarkPlugins: [
'remark-emoji',
]
],
mfsu: false,
});
4 changes: 3 additions & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ jobs:
with:
surge_token: ${{ secrets.SURGE_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
env: |
MY_SITE_BASE=/
build: |
pnpm i
pnpm run docs:preview
pnpm run build
dist: dist

- name: Get the preview_url
Expand Down
20 changes: 20 additions & 0 deletions docs/hello/icon-svg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
toc: content
---

https://github.com/umijs/dumi/issues/1904

## 验证一个 bug

```tsx
import React from 'react';
import { AccountBookOutlined } from '@ant-design/icons-svg';

export default () => {
React.useEffect(() => {
console.log('hello', { AccountBookOutlined });
}, []);

return <input type="text" />;
};
```
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
]
},
"devDependencies": {
"@ant-design/icons-svg": "^4.3.1",
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"dumi": "^2.0.2",
Expand Down
47 changes: 44 additions & 3 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 8831a33

Please sign in to comment.