Closed laghee closed 6 years ago
my 2 cent, @laghee did you look webpack-merge?
@magsout I did -- that was my original impulse. But then I messed around with it for a while, and it almost seemed like it would wind up being more complicated rather than less. Since the config files are so similar, with differences evenly distributed throughout, I was having trouble finding enough to even make a common base file.
I saw a few examples of one-file merge configs, but almost all of them follow production/development divisions, which is relatively simple since it only means adding in a discrete plugin or loader or whatever. Here it's individual bits within the plugin, and that basically stalled me since every time I tried to split up the plugin it just added more complexity.
Totally possible that there's a better way!
Having four separate files means a lot of repeated code and four files to update going forward.