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

support monorepo #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

ryanwang520
Copy link

支持monorepo(yarn workspace or learn)。
如果yarn workspace有 3个package A,B,C。 A和B两个独立的需要构建的mpvue小程序,C是公用的组件

那么构建小程序A的时候
mpvue-loader会把C里的组件,build到 A/C/目录,而不是A/dist/里面,引用的时候则是通过
<import src="/../C/shared-component.wxml"的方式,但是C都不在dist里,造成引用错误。

需要把C构建到A/dist下面,修改同时修改掉path.

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

Successfully merging this pull request may close these issues.

1 participant