Skip to content

Commit

Permalink
Add a hash to media files even in the devmode. (#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: #445
  • Loading branch information
arunoda authored and gaearon committed Aug 22, 2016
1 parent 9e37917 commit d624756
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 @@ -129,7 +129,7 @@ module.exports = {
include: [paths.appSrc, paths.appNodeModules],
loader: 'file',
query: {
name: 'static/media/[name].[ext]'
name: 'static/media/[name].[hash:8].[ext]'
}
},
// "url" loader works just like "file" loader but it also embeds
Expand All @@ -140,7 +140,7 @@ module.exports = {
loader: 'url',
query: {
limit: 10000,
name: 'static/media/[name].[ext]'
name: 'static/media/[name].[hash:8].[ext]'
}
}
]
Expand Down

0 comments on commit d624756

Please sign in to comment.