Hi, in a project I'd like to store all images in /web/images, and use them in scss files with their absolute paths.
For example:
background-image: url("/images/sign-up.svg");
but he image url is not resolved correctly.
More specifically:
when using bin/console maba:webpack:compile the url is (correctly) /images/sign-up.svg,
but when using bin/console maba:webpack:dev-server the url is (wrongly) http://127.0.0.1:8080/images/sign-up.svg
I don't get why in dev-server the path is not well resolved as in compile. Any Suggestions?
Hi, in a project I'd like to store all images in
/web/images
, and use them in scss files with their absolute paths.For example:
but he image url is not resolved correctly.
More specifically: when using bin/console maba:webpack:compile the url is (correctly)
/images/sign-up.svg
, but when using bin/console maba:webpack:dev-server the url is (wrongly)http://127.0.0.1:8080/images/sign-up.svg
I don't get why in
dev-server
the path is not well resolved as incompile
. Any Suggestions?