Answer the question
In order to leave comments, you need to log in
webpack + sass Problem with paths when used on the server?
Images are taken in the scss file like this:
url(../images/ic_assignment_white_48dp.png);
I use a dev server on loacalhost:
It tries to request:
localhost:3000/stylesheets/public/images//ic_assig...
It needs to request:
localhost:3000/public/images//ic_assignment_white_...
When not using preprocessors - just in css wrote the right path.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question