angular-builders icon indicating copy to clipboard operation
angular-builders copied to clipboard

Custom merge strategy

Open g2graman opened this issue 6 years ago • 4 comments

Would it be possible to allow for a custom mergeStrategy in which the webpack file exports a function? This function would receive both the environment (e.g., production or development) and the webpack config before the overrides and the body of that function would be used to determine, in a custom way, how someone wants to process the merge themself?

g2graman avatar Sep 17 '18 17:09 g2graman

Let's see first what is it that you're trying to achieve. If it's just running different customWebpack configs for production and development build or using different merge strategies, you can do that by simply adding production and development configurations to the build target.

just-jeb avatar Sep 18 '18 12:09 just-jeb

@meltedspark I don't have a specific use case for it but I thought it would be good to mimic how react-app-rewired allows customizations of webpack builds. A nice implication of this is that people can create separate plugins as their own packages which can be composed.

g2graman avatar Sep 19 '18 20:09 g2graman

What's this work.I don't know. Please all gentleman help me?

Jahirhossainmoni avatar Nov 04 '18 14:11 Jahirhossainmoni

I'm not sure I understand your question... could you elaborate?

just-jeb avatar Nov 04 '18 15:11 just-jeb

Closing since been stale.

arturovt avatar Dec 09 '22 22:12 arturovt