angular-builders
angular-builders copied to clipboard
Custom merge strategy
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?
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.
@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.
What's this work.I don't know. Please all gentleman help me?
I'm not sure I understand your question... could you elaborate?
Closing since been stale.