Z
Z
zwezew2017-10-11 13:10:24
css
zwezew, 2017-10-11 13:10:24

Why does webpack2 generate different paths when compiling the same code from css and sass?

Code is used in styles When compiling from scss, the path is written as From css as Where can there be a jamb?
background: url("menu.svg") no-repeat;
../images/menu.svg
/images/menu.svg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lnked, 2017-10-11
@zwezew

Look at the rules for handling these 2 formats in the webpack config

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question