The issue is the path of the image located in "assets" folder is not loading after ng build.
I am running ng build after changing the path to <base href="/skstose/"> of index.html.
Dev environment means ng serve.
Prod environment means ng build after compiling.
1) The below issue is in dev environment:-
Module Error (from ./node_modules/postcss-loader/src/index.js):
(Emitted value instead of an instance of Error) CssSyntaxError:
Can't resolve 'assets/images/skistose/kgExtract.png' in 'E:\Workspace\skistose\src\app\skistose-kg-extract'
> 2 | background: url("assets/images/skillStore/kgExtract.png") no-repeat;
^
2) The below issue is in prod environment:-
.css
.bg{
background: url(/assets/images/skillStore/kgExtract.png) no-repeat
}
is working in dev environement but not in prod environment.
.css
.bg{
background: url(assets/images/skillStore/kgExtract.png) no-repeat
}
is working in prod environment but not in dev environment.
However, <img src="assets/images/skillStore/uploadFile.png"> is working fine in dev environment as well as 'prod environment'.
In dev environment ,
<base href="/">
In prod build:-
<base href="/skstose/">