We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
现在的combile配置是必须写在module.conf中的,但是一个系统如果超过200个文件,会导致module.conf非常大,写在一个文件中的配置也不容易维护
combile
module.conf
因此,项目会有需求分模块、分业务地写多个配置,在build时期再把这些配置合并起来
个人建议,在edp-build-config.js中可以额外提供一个getCombineConfig方法,返回的对象即为合并的配置,如果没有此方法,保持原逻辑默认使用module.conf
edp-build-config.js
getCombineConfig
The text was updated successfully, but these errors were encountered:
@otakustay
因为combine主要是给ModuleCompiler用的,因此这样子支持是否可以?
combine
ModuleCompiler
new ModuleCompiler( { exclude: ['src/common/js/jquery-*.min.js'], configFile: 'module.conf', entryExtnames: moduleEntries, getCombineConfig: function() { // blablabla... } })
Sorry, something went wrong.
可以,但建议getCombineConfig添加一个参数,就是module.conf里的那个配置,这样这个函数可以基于那边的配置来做进一步处理返回结果,默认实现是直接返回参数
Fix #15
e75b1a3
95c1b91
No branches or pull requests
现在的
combile
配置是必须写在module.conf
中的,但是一个系统如果超过200个文件,会导致module.conf
非常大,写在一个文件中的配置也不容易维护因此,项目会有需求分模块、分业务地写多个配置,在build时期再把这些配置合并起来
个人建议,在
edp-build-config.js
中可以额外提供一个getCombineConfig
方法,返回的对象即为合并的配置,如果没有此方法,保持原逻辑默认使用module.conf
The text was updated successfully, but these errors were encountered: