K
K
KnightForce2017-04-07 13:57:24
Sass
KnightForce, 2017-04-07 13:57:24

webpack. Sass-loader doesn't properly handle relative paths in url()?

In the sass file I specify In the output css file: Tried resolve-url-loader, does not help.background: url(../images/icons/image,png)
background: url(/public/images/icons/search.png)

use: extractSass.extract({
                use: [
                {
                    loader: "css-loader"
                },
                {
                    loader: "resolve-url-loader",
                }, 
                {
                    loader: "sass-loader",                   
                }],
                fallback: "style-loader"
            }),

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question