Answer the question
In order to leave comments, you need to log in
How to set up webpack5?
Good afternoon, after a recent npm update, when building webpack5, the path to url background images began to display incorrectly
background:#171f2c url(webpack:///images/images.jpg)
// IMAGES
{
test: /\.(png|jpg|gif|webp)$/,
type: "asset",
generator: {
filename: '../images/[name][ext]'
}
},
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