webpack: append hash to filename instead of using only hash
This commit is contained in:
parent
fa39851439
commit
942f56ee76
1 changed files with 6 additions and 1 deletions
|
@ -110,7 +110,12 @@ let config = {
|
||||||
// Images/files
|
// Images/files
|
||||||
{
|
{
|
||||||
test: /\.(png|jpg)$/i,
|
test: /\.(png|jpg)$/i,
|
||||||
use: ["file-loader"],
|
use: {
|
||||||
|
loader: "file-loader",
|
||||||
|
options: {
|
||||||
|
name: "[name]-[hash].[ext]",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
// HTML
|
// HTML
|
||||||
|
|
Loading…
Add table
Reference in a new issue