I have an angular library that contains assets and a scss theme with in the call to an image
background-image: url(assets/img/bg-resize.png);
My problem is that this way of doing things works in an Angular 9 project but not in an Angular 10 project. I would have liked a solution that works in both Angular 9 and Angular 10
Try using:
background-image: url('/assets/img/bg-resize.png');
2.1m questions
2.1m answers
60 comments
57.0k users