Add url loader

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2020-08-22 09:20:29 +02:00
parent ff56edd520
commit b42991eff2
No known key found for this signature in database
GPG key ID: 60C25B8C072916CF

View file

@ -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$/),
],