How to specify the name of the picture under webpack packaging

as the picture shows

Insert picture description here
among them

[img/] represents the current folder of the image,
[name] represents the original name of the image.
[hash:8] The hash algorithm generates an 8-digit file name to prevent duplication of file names.
[ext] represents the suffix
folder of
the file name Add a / at the end, otherwise it will be treated as a string, as the fixed file name of the picture, name, hash, ext must be added with a [] to be treated as a variable. The
result is displayed
Insert picture description here

Guess you like

Origin blog.csdn.net/dwjdj/article/details/108309427