Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
602 views
in Technique[技术] by (71.8m points)

如何让webpack-chain合并原有配置

项目中用到了webpack-chain
因为可以方便的合并公共的开发配置等
但是链式写法和Map,Set存在一定的学习成本,
需求是如何让其他开发人员使用的时候简易化配置
不用去专门看webpack-chain就能直接配置,,或者说有其他语义化 降低学习成本的方案,
这个需求困扰了我好久啊,大家有什么好的想法!

或者将原webpack对象形式配置转换 或者 合并到原webpack-chain。】在chainWebpack函数内引入配置的json文件即可,而不用在chainWebpack中写链式配置。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...