我有两个项目文件夹component
跟component-docs
。component
是我开发组件的。component-docs
是我用来写组件文档的。
我在component
目录执行yarn link
。
然后到component-docs
目录执行yarn link component
。
这样就可以引用本地的组件包了。
但是有个问题就是我每次打包组件后,文档页面提示[WDS] Errors while compiling. Reload prevented.
,导致我就只能重启vuepress
。
这个问题只在我家里电脑Windows系统上出现,我MacBook同样的操作不会出现这个问题。
有没有什么办法,能够不要让我每次打包还得重启。