diff options
author | Vitaly Takmazov | 2020-04-28 14:57:36 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2020-04-28 14:57:36 +0300 |
commit | b0d16505deecd3490a2061fe621e87596b1617fd (patch) | |
tree | e29de5fe9de0ff7e1a4a32fa0f820a10d4c1f0bd | |
parent | c35693a6cc903107346dbdafb29a4026048d3e2e (diff) |
webpack: use url-loader for SVG to fix caching
-rw-r--r-- | webpack.config.js | 9 |
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]', - }, } ] }, |