How to write Webpack plugin which adds modules to the bundle on the fly based on other modules?

This is a really complex question, but I can show how you can add additional dependencies to specific modules as if those were required from that module. This ensures that your added modules will be in the correct chunks and will also be removed if the parent module is removed from the bundle. const CommonJsRequireDependency … Read more

Can someone explain Webpack’s CommonsChunkPlugin

This is how the CommonsChunkPlugin works. A common chunk “receives” the modules shared by several entry chunks. A good example of a complex configuration can be found in the Webpack repository. The CommonsChunkPlugin is run during the optimization phase of Webpack, which means that it operates in memory, just before the chunks are sealed and … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)