K
K
KnightForce2017-05-09 23:52:27
webpack
KnightForce, 2017-05-09 23:52:27

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

1 answer(s)
K
KnightForce, 2017-05-10
@KnightForce

Fixed - by changing the path in the file-loader.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question