Laravel Mix is an easy-to-use tool for building assets without writing Webpack config. It works out of the box for many use cases.
However, in real-world applications which have high traffic or global audience, you need to serve assets from CDN for the purpose of performance gain. But Laravel Mix doesn’t support uploading and serving assets from CDN by default.
You can achieve this by customizing Laravel Mix configuration. But it's not straightforward to make it work with CDN caching mechanism.
In this presentation, I’ll walk you through how to serve assets from CDN with proper cache busting strategy using Laravel Mix.