Edit webpack to accept svg files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user