I know this has been asked before of previous versions of the platform, but I can’t get anything to work.
Goal: store app icon assets locally so they don’t take time to load
Problem: no local asset path works–in every case, the app tries to load the /index.html into the svg image tag. I.e. the src
path is not preprocessed as an asset path.
For /img/ directory under /src/, I have tried the following, all of which try to load the index.html SPA, i.e. Ionic is not processing these paths as local asset paths at all.
addIcons({
'home1': '/assets/img/icon.svg',
'home2': './assets/img/icon.svg',
'home3': 'assets/img/icon.svg',
'home4': '@/assets/img/icon.svg',
'home5': '../assets/img/icon.svg',
'home6': '../../assets/img/icon.svg',
})
External paths do work (e.g. to CDN bucket).