From 7c912b5ffe48eda1c8b0b6f005a117d5764eb0a6 Mon Sep 17 00:00:00 2001 From: Arunoda Susiripala <arunoda.susiripala@gmail.com> Date: Tue, 16 Aug 2016 00:23:19 +0530 Subject: [PATCH] Add a hash to media files even in the devmode. (#446) This will work correctly when there are duplicate filenames in different paths. Fixes: #445 --- config/webpack.config.dev.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/webpack.config.dev.js b/config/webpack.config.dev.js index 5e28bb7c9..397acd315 100644 --- a/config/webpack.config.dev.js +++ b/config/webpack.config.dev.js @@ -131,7 +131,7 @@ module.exports = { exclude: /\/favicon.ico$/, loader: 'file', query: { - name: 'static/media/[name].[ext]' + name: 'static/media/[name].[hash:8].[ext]' } }, // A special case for favicon.ico to place it into build root directory. @@ -151,7 +151,7 @@ module.exports = { loader: 'url', query: { limit: 10000, - name: 'static/media/[name].[ext]' + name: 'static/media/[name].[hash:8].[ext]' } }, // "html" loader is used to process template page (index.html) to resolve -- GitLab