Skip to content

Commit

Permalink
docs: add link guide (element-plus#3698)
Browse files Browse the repository at this point in the history
* docs: add link guide

* docs: add link guide trap
  • Loading branch information
YunYouJun authored Sep 28, 2021
1 parent c68d59c commit 4a775cf
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions DEV_FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,21 @@ Here are the problems that are easy to encounter in development.
```bash
pnpm i
```

## Link local dependencies

```bash
# get dist
pnpm build
cd dist/element-plus
# set cur element-plus to global `node_modules`
pnpm link --global
# for esm we also need link element-plus for dist
pnpm link --global element-plus

# go to your project, link to `element-plus`
cd your-project
pnpm link --global element-plus
```

> More info see [link | pnpm](https://pnpm.io/zh/cli/link).

0 comments on commit 4a775cf

Please sign in to comment.