From b0d16505deecd3490a2061fe621e87596b1617fd Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 28 Apr 2020 14:57:36 +0300 Subject: webpack: use url-loader for SVG to fix caching --- webpack.config.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'webpack.config.js') 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]', - }, } ] }, -- cgit v1.2.3