summaryrefslogtreecommitdiffstats
path: root/webpack.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.js')
-rw-r--r--webpack.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/webpack.js b/webpack.js
index 66cb7feef..c14623442 100644
--- a/webpack.js
+++ b/webpack.js
@@ -6,11 +6,12 @@ const config = {
module: {
rules: [
{
- test: /\.(jpg|png|svg)$/,
- use: {
- loader: 'file-loader',
- },
- }
+ test: /\.(png|jpg|gif|svg)$/,
+ loader: 'file-loader',
+ options: {
+ name: '[name].[ext]?[hash]',
+ },
+ },
],
},
}