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

[Question]如何不提示[Config File] Config key 'xxx' is not supported #2342

Open
xmsz opened this issue Apr 14, 2022 · 2 comments
Open

[Question]如何不提示[Config File] Config key 'xxx' is not supported #2342

xmsz opened this issue Apr 14, 2022 · 2 comments

Comments

@xmsz
Copy link

xmsz commented Apr 14, 2022

背景

{
  "targets": ["web"],
  "wechat-miniprogram": {
    "nativeConfig": {
      "appid": "xxx"
    }
  }
}

会提示[Config File] Config key 'wechat-miniprogram' is not supported

除非我加上targets加上wechat-miniprogram

然后我场景是

  • 开发时候大部分是只有构建web,只有打包才会加上其他环境
  • 现在的情况,我只够构建web的时候还得把其他环境的配置删掉

需求

  • 这种场景如何不提示这种错误,或者提示后能否不中断构建
@SoloJiang
Copy link
Collaborator

可以命令行指定需要调试的端,比如 npm start -- --dev-targets=web

@xmsz
Copy link
Author

xmsz commented May 16, 2022

可以命令行指定需要调试的端,比如 npm start -- --dev-targets=web

image

还是提示一样的错误

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