Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

引用组件路径过长问题 #1

Open
jtfl2008 opened this issue Jan 15, 2020 · 2 comments
Open

引用组件路径过长问题 #1

jtfl2008 opened this issue Jan 15, 2020 · 2 comments

Comments

@jtfl2008
Copy link

在子应用使用主应用的组件或者方法,使用相对路径来引用,路径过长容易写错,有没有好的解决办法

@F-loat
Copy link
Owner

F-loat commented Jan 15, 2020

前端微服务化进阶3 - 跨模块共享组件 这篇文章提供了一种实现思路,我这边实践看看,有比较好的解决方案的话会更新到示例中

@F-loat
Copy link
Owner

F-loat commented Jan 15, 2020

你们现在直接引用这种模式不太合理,不过如果只是想解决路径过长的问题,配置下 webpack 的 alias 就可以的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants