How code-splitting and dynamic Import works
Glad you asked. The documentation at webpack output.publicPath says this is one free variable __webpack_public_path__ which can be used to define the publicPath where webpack would look to lazy-load (or on-demand load) chunks. Concept of publicPath When creating an SPA (Single Page Application), al…