Answer the question
In order to leave comments, you need to log in
How to write configuration in webpack5?
Good afternoon in webpack5 the following config for generating images
// IMAGES
{
test: /\.(png|jpg|gif|webp)$/,
type: 'asset/resource',
generator: {
filename: '../dist/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