aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-04-28 14:57:36 +0300
committerGravatar Vitaly Takmazov2020-04-28 14:57:36 +0300
commitb0d16505deecd3490a2061fe621e87596b1617fd (patch)
treee29de5fe9de0ff7e1a4a32fa0f820a10d4c1f0bd /webpack.config.js
parentc35693a6cc903107346dbdafb29a4026048d3e2e (diff)
webpack: use url-loader for SVG to fix caching
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/webpack.config.js b/webpack.config.js
index f20b9ff0..d612fb13 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -55,17 +55,10 @@ module.exports = (env, argv) => {
]
},
{
- test: /\.(jpe?g|png|gif)$/i,
+ test: /\.(jpe?g|png|svg|gif)$/i,
loaders: [
'url-loader'
]
- },
- {
- test: /\.(svg)$/i,
- loader: 'file-loader',
- options: {
- name: '[name].[ext]',
- },
}
]
},