alibaba / rax

🐰 Rax is a progressive framework for building universal application. https://rax.js.org
Other
8k stars 627 forks source link

[Question]自定义插件/onGetWebpackConfig如何区分构建的环境 #2340

Closed xmsz closed 2 years ago

xmsz commented 2 years ago

背景

需求

ChrisCindy commented 2 years ago

onGetWebpackConfig 支持传入 target 及获取该 target 对应的 config:

onGetWebpackConfig('wechat-miniprogram', (config) => {
  // modify config     
});