Skip to content

Commit

Permalink
Add a hash to media files even in the devmode. (facebook#446)
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 and George Czabania committed Sep 7, 2016
1 parent d295979 commit 53bb28d
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 @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 53bb28d

Please sign in to comment.