From 9bdbb1b44e5945f2232309c31a2a739e2c81dc4a Mon Sep 17 00:00:00 2001 From: Arunoda Susiripala Date: Mon, 15 Aug 2016 22:42:03 +0530 Subject: [PATCH] Add a hash to media files even in the devmode. 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 5e28bb7c916..397acd315e9 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