From 92c65cd44bdb4cc8b72bcb03ca81c2b56f1bf419 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Wed, 26 Oct 2022 00:31:20 +0400 Subject: [PATCH] Edit webpack to accept svg files --- next.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/next.config.js b/next.config.js index 57fc563..eebefd5 100644 --- a/next.config.js +++ b/next.config.js @@ -8,6 +8,10 @@ const withPWA = require('next-pwa')({ const domains = process.env.NEXT_PUBLIC_DOMAINS_IMAGE.split(' ') || 'localhost' module.exports = withPWA({ + webpack: { + test: /\.svg$/, + use: ['@svgr/webpack', 'url-loader'], + }, swcMinify: true, images: { domains