6 months ago

Vapor ASSET_URL and images in Vue

Posted 6 months ago by georgeboot

I am trying to deploy an Inertia app to Vapor. I followed the documentation from Vapor on how to handle code splitting.

My javascript code works fine, webpack correctly sets the output directory and assetUrl.

However, in my Vue files, I do have some <img> tags linking to local files. Webpack automatically extracts them and uploads them the the cdn. However, webpack does not update the src of these images.

How can I get webpack to do that?

Please sign in or create an account to participate in this conversation.