Skip to content

Commit

Permalink
chore: add an issue association
Browse files Browse the repository at this point in the history
  • Loading branch information
chengpeiquan committed Jan 16, 2024
1 parent f458036 commit 83c0130
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ outline: 'deep'

考虑到后面还会不定期更新内容,所以翻了一下之前跟朋友的微信聊天记录整理了前期的更新记录,之后当文档有再次更新的时候也会继续整理更新记录,方便读者们查阅。

## 2024-01-16

插件部分增加一个 [path/to 的典故](./plugin.md#对-npm-包进行本地调试) 扩展阅读。

## 2023-05-07

感谢各位读者长期以来的支持,经过长达一年时间的打磨和优化,本书已于 2023 年 5 月份正式出版上市,纸质版书籍的正式名称为《前端工程化:基于 Vue.js 3.0 的设计与实践》。
Expand Down
8 changes: 6 additions & 2 deletions docs/plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ import { createRouter, createWebHistory } from 'vue-router'

| 参数 | 类型 | 作用 |
| :------ | :----------------- | :----------------------------------------------- |
| plugin | object \| function | 插件,一般是在 import 时使用的名称 |
| plugin | object \| function | 插件,一般是在 import 时使用的名称 |
| options | object | 插件的参数,有些插件在初始化时可以配置一定的选项 |

基本的写法就是像下面这样:
Expand Down Expand Up @@ -1109,7 +1109,11 @@ index.min.js 同样正常按照 UMD 风格转换成了 JavaScript 代码:

开发或者迭代了一个 npm 包之后,不建议直接发布,可以在本地进行测试,直到没有问题了再发布到 npmjs 上供其他人使用。

npm 提供了一个 `npm link` 命令供开发者本地联调,假设 `path/to/my-library` 是一个 npm 包的项目路径, `path/to/my-project` 是一个调试项目的所在路径,那么通过以下步骤可以在 `my-project` 里本地调试 `my-library` 包:
npm 提供了一个 `npm link` 命令供开发者本地联调,假设 `path/to/my-library` 是一个 npm 包的项目路径, `path/to/my-project` 是一个调试项目的所在路径,那么通过以下步骤可以在 `my-project` 里本地调试 `my-library` 包。

:::tip
关于 `path/to` 的典故,可以查看 [#294](https://github.com/chengpeiquan/learning-vue3/issues/294) 了解。
:::

##### 创建本地软链接

Expand Down

0 comments on commit 83c0130

Please sign in to comment.