I have this scss file
&__passo2 {
width: 100%;
height: auto;
margin-bottom: 56px;
margin-top: 14px;
figure {
height: 44vw;
width: 70vw;;
margin: 0 auto;
background-image: url('../../../../assets/img/01.png');
background-size: contain;
background-repeat: no-repeat;
background-position: center;
border: none;
}
}
I want to replace url
inside background-image
something like this
background-image: url(`${environment.baseUrl}/img/01.png`);
My environment
file
export const environment = {
production: false,
verbose: true,
baseUrl: 'http://localhost:9081/assets'
};
I use angular 7 in my project, i saw some solutions for customizing environment variables in the webpack config
, but my project doesn't have this file and I didn't really understand what it is for and how to configure