mariusbalcytis / webpack-bundle

Bundle to Integrate Webpack into Symfony
MIT License
122 stars 36 forks source link

Problem when using absolute paths in scss #78

Closed inmarelibero closed 6 years ago

inmarelibero commented 6 years ago

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?

inmarelibero commented 6 years ago

closing this because was my fault, I didn't realize there was a misconfiguration in app/config/webpack.config.js