From b42991eff2281ff300c3b1b850144d6424e08625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Sat, 22 Aug 2020 09:20:29 +0200 Subject: [PATCH] Add url loader MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- webpack.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webpack.js b/webpack.js index 0926799..ada8c4c 100644 --- a/webpack.js +++ b/webpack.js @@ -7,6 +7,14 @@ const config = { entry: { submit: path.resolve(path.join('src', 'submit.js')), }, + module: { + rules: [ + { + test: /\.svg$/, + use: 'url-loader', + }, + ], + }, plugins: [ new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/), ],