vue-cli-plugin-cordova icon indicating copy to clipboard operation
vue-cli-plugin-cordova copied to clipboard

Cordova Build Android not found assets files

Open jardimfelipe opened this issue 4 years ago • 1 comments

This is the first time that I installed cordova in a running Vue project. Everything works fine, but all images in /assets are not found in builded apk, but is found in cordova serve android command. All images imported by url() in

jardimfelipe avatar Dec 31 '20 17:12 jardimfelipe

Yes, I'm facing the same problem the workaround now is just to check if it's Android and then prefix the path with file:///android_asset/www/assets...

isAndroid?"file:///android_asset/www/assets/images/logo_around_clouds.svg"

JPilson avatar Feb 06 '21 10:02 JPilson