Skip to content

Instantly share code, notes, and snippets.

@Ademking
Last active July 20, 2018 03:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ademking/4d7cec53f72673e92a1bf3892fe87b0d to your computer and use it in GitHub Desktop.
Save Ademking/4d7cec53f72673e92a1bf3892fe87b0d to your computer and use it in GitHub Desktop.
πŸ’™ Ionic 3 : Image not showen in build --Prod apk .. but working in debug mode.. Solution

When addressing images from your .ts files, use ../assets relative path because we have to get out of the build directory first. When addressing the image from your .html files, use assets relative path, because in the final apk file all htmls are merged into one single file called index.html which is placed next to the assets directory and there is no need to go up one level before reaching assets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment