[Vuejs]-How can I display a locally saved image with vue.js (transformAssetUrls)?

1👍

transformAssetUrls is for project relative resources, which are known at compile time of your app (these are handled by webpack).

What you need, for images dynamically loaded to the server are web relative URLs (i.e. /uploads/some-image.jpg, where /uploads is a directory on the root of your server where you store dynamically uploaded images. these do not require transformAssetUrls, and are not handled by webpack, but rather your webserver.

Leave a comment