![]() To follow up on some points mentioned in #14587 (comment) Unfortunately, many of similar issues here on git are already locked due to inactivity, that's why I am creating this new one. works on local and on production environment.is able to link to the same file when loading both from css and from ts.doesn't copy the images when using relative css paths.I am searching for a clean solution which: css path, such as url('^assets/images/bg_login.jpg'): not working on production and officially not supported ( Can't use relative paths in url() in scss files #12797 (comment)) css path, such as url('~/assets/images/bg_login.jpg'): not working on production using of rebaseRootRelativeCssUrls: not working on production and considered deprecated.that's why the code for replacing the background images will not work as desired (the image is loaded twice instead of once on the same path). ![]() ![]() ![]() ts image bg_login.jpg is searched in /assets/images/ path css image bg_login.jpg is searched in root path (of the build) This is unwanted and inpractical for many reasons described e.g. On local development without base href it is working fine, as well as with -base-href /de/.īUT what this causes when building? The files used in relative paths are copied from /assets/images/ to root directory of each localized build. Background-image: url("./././assets/images/bg_login_compressed.jpg") īackground-image: url("./././assets/images/bg_login.jpg")
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |