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 publicPathWhen creating an SPA (Single Page Application), all …

Read More

How everything works together

This is an attempt to cover the working of this tooling. While this is really just a webpack and browser-sync based tooling, there are a few cases we had to consider to make sure it works nicely with WordPress.Choice of toolingWe use webpack as the primary bundler.Browser Sync, along with webpack-d…

Read More