I don't really get how it would be easier for this.
If you need a standard Webpack config that supports X, Y, and Z. There are tools that do this already much better than ChaptGPT (the Webpack CLI will do it for you).
If you need some esoteric config for your highly custom setup, I highly doubt that ChatGPT would be useful in anyway.