Open ionitron-bot[bot] opened 5 years ago
Any news on this?
I'm also trying to figure this out. My asset paths are inconsistently working when I use ionic serve in a browser, vs building for android and running it on a devices, vs building for ios on a simulator. Similarly to the original issue, I am trying to figure out the best practice for where to put my assets and how to link them from these scss files.
Original issue by @Domvel on 2018-02-16T18:31:42Z
What is the correct path for assets reference on ALL build? In css I use some image like:
This works with
ionic serve
andionic cordova run android -lc
but not withionic cordova run android --prod
.I also have problems with relative path. Look at this lines and comments. Tested in
ionic serve
mode (also with cleared cache)I'm looking for a always-working-path in every style-file. Also for src-references in html-tags and http-get, to load assets.
Some console prints of the prod build viewed with chrome developer tools remote device inspector.
Don't know why the font is missing? Is it a ionic request? In production build, the icon resources from assets can't load. (css url(path))