Opening discussion about the Webpack configuration

Here the very basic webpack configuration is used:
That configuration is also used in some existing packages.
Probably we can work on improvement of that configuration, starting with changing mode to “production” and then considering other optimizations: splitting to chunks (including runtime chunk), long term caching, and some other recommendations for developers, which a possible in scope of custome packages development

Sure! That’s all are good suggestions.
We want to make DG switch to production automatically.
That is always a concern – if we want to have better debugging or production optimization.
And sure, splitting it into chunks is a good idea, but we need to implement DG support.

Could you provide an example on webpack config with chunks, as you see it?

Thank you, Alex. Will provide an example later today or tomorrow.

1 Like