From 942f56ee7686190f4d226c587723db5916e3b1e2 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Thu, 10 Oct 2019 23:25:13 +0300 Subject: [PATCH] webpack: append hash to filename instead of using only hash --- dashboard/webpack.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dashboard/webpack.config.js b/dashboard/webpack.config.js index b80ce96f..3562673b 100644 --- a/dashboard/webpack.config.js +++ b/dashboard/webpack.config.js @@ -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