webpack: append hash to filename instead of using only hash

This commit is contained in:
Dragory 2019-10-10 23:25:13 +03:00
parent fa39851439
commit 942f56ee76

View file

@ -110,7 +110,12 @@ let config = {
// Images/files
{
test: /\.(png|jpg)$/i,
use: ["file-loader"],
use: {
loader: "file-loader",
options: {
name: "[name]-[hash].[ext]",
},
},
},
// HTML