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

umi_env 目前好像是覆盖方式,可以支持合并方式吗 #2050

Closed
yuicer opened this issue Mar 4, 2019 · 2 comments
Closed

umi_env 目前好像是覆盖方式,可以支持合并方式吗 #2050

yuicer opened this issue Mar 4, 2019 · 2 comments

Comments

@yuicer
Copy link

yuicer commented Mar 4, 2019

如果有 .umirc.prod.js 和 .umirc.js的话,.prod plugins 选项很容易需要写很多重复的配置。

能否支持 merge 方式,这样在 .umirc 中写基本的 plugins ,然后在 .prod 中添加额外需要的配置。
这种类似于 webpack merge 的形式应该更好一点把?

@sorrycc
Copy link
Member

sorrycc commented Mar 4, 2019

你可以在 .umirc.prod.js 里 import .umirc.js 的内容,然后做合并。

@sorrycc sorrycc closed this as completed Mar 4, 2019
@yuicer
Copy link
Author

yuicer commented Mar 10, 2019

@sorrycc ,好的,谢谢

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