From 53bb28db39d9c714a13c5a613554fd7522541f9a Mon Sep 17 00:00:00 2001 From: Arunoda Susiripala 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 1cc59e6640a..c940438ab37 100644 --- a/config/webpack.config.dev.js +++ b/config/webpack.config.dev.js @@ -132,7 +132,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. @@ -152,7 +152,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