Skip to content

Commit 72cb160

Browse files
MoruoFroghaoqunjiang
authored andcommitted
docs: add Chinese translation for the part -- Installing plugin locally (#4165)
1 parent d1b7121 commit 72cb160

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/zh/dev-guide/plugin-dev.md

+17
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,23 @@ vue invoke my-plugin --mode awesome
316316
- 被其它开发者搜索到;
317317
- 通过 `vue add <name>``vue invoke <name>` 安装下来。
318318

319+
### 本地测试插件
320+
321+
当你进行插件开发的时候,需要在本地对插件进行测试,你可以使用已有的 Vue CLI 项目或者新建一个项目来进行:
322+
323+
```bash
324+
vue create test-app
325+
```
326+
327+
然后,在项目的根目录,使用下面的命令添加需要测试的本地插件:
328+
329+
```bash
330+
npm install --save-dev file:/full/path/to/your/plugin
331+
vue invoke <your-plugin-name>
332+
```
333+
334+
当对插件进行了修改之后,你需要重复上面的步骤来使变动生效
335+
319336
## 开发核心插件的注意事项
320337

321338
::: tip 注意

0 commit comments

Comments
 (0)