From aef8f59e68a22f95b0040bbc4000e6153d6abe5d Mon Sep 17 00:00:00 2001 From: Eric Alli Date: Sat, 15 Jun 2019 12:46:04 -0700 Subject: [PATCH] fix images not correctly hashing filename for production build --- config/webpack.loaders.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/webpack.loaders.js b/config/webpack.loaders.js index 83aba97..b5656eb 100644 --- a/config/webpack.loaders.js +++ b/config/webpack.loaders.js @@ -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), };