Answer the question
In order to leave comments, you need to log in
Webpack 5. How to preserve image folder structure?
There is a config
{
test: /\.(?:svg|gif|png|jpg|jpeg|webp)$/i,
type: "asset/resource",
generator: {
filename: "img/[path][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