I'm working with angular cli and webpack. I have a code to change the variable webpack_require.p in runtime but when the application compile scss files is not using the new value of webpack_require.p and an image in css is not loading.
This work just fine with the angular cli version 1.6.7 but now I'm using version 1.7.2 and is not working: below is my code:
declare var __webpack_require__: any;
__webpack_require__.p = newValue;
My scss file looks like this:
.className {
background: url(../../../dir1/dir2/images/imageName.jpg) no-repeat; }
UPDATE: Using CLI version 1.7.3 doesn't fix the problem. Others resources work just fine but not the scss background url image.