Skip to content

Commit

Permalink
Add a hash to media files even in the devmode.
Browse files Browse the repository at this point in the history
This will work correctly when there are duplicate filenames in different paths.
Fixes: facebook#445
  • Loading branch information
arunoda authored Aug 15, 2016
1 parent 60178ac commit 9bdbb1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 9bdbb1b

Please sign in to comment.