Skip to content

Commit

Permalink
fix images not correctly hashing filename for production build
Browse files Browse the repository at this point in the history
  • Loading branch information
ericalli committed Jun 15, 2019
1 parent c8899a2 commit aef8f59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/webpack.loaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const imageLoader = {
const images = {
test: /\.(gif|png|jpe?g|svg)$/i,
use: [
'file-loader?name=images/[name].[ext]?[hash]',
'file-loader?name=images/[name].[hash].[ext]',
config.env === 'production' ? imageLoader : null,
].filter(Boolean),
};
Expand Down

0 comments on commit aef8f59

Please sign in to comment.