Answer the question
In order to leave comments, you need to log in
webpack. Sass-loader incorrectly specifies path for url() in css. Why?
Part of the config.
output:
output: {
path: path.join(__dirname, 'public'),
filename: '[name].js',
publicPath: '/public/',
},
{
test: /\.(png|jpg|svg|ttf|eot|woff|woff2)$/,
use: "file-loader?name=[path][name].[ext]",
}
background: url(../images/icons/image,png)
background: url(/public/images/icons/search.png)
Answer the question
In order to leave comments, you need to log in
sass is compiled using the loader, and the loader "eats" the path from the webpack config
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question