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'
|
const domains = process.env.NEXT_PUBLIC_DOMAINS_IMAGE.split(' ') || 'localhost'
|
||||||
|
|
||||||
module.exports = withPWA({
|
module.exports = withPWA({
|
||||||
|
webpack: {
|
||||||
|
test: /\.svg$/,
|
||||||
|
use: ['@svgr/webpack', 'url-loader'],
|
||||||
|
},
|
||||||
swcMinify: true,
|
swcMinify: true,
|
||||||
images: {
|
images: {
|
||||||
domains
|
domains
|
||||||
|
|||||||
Reference in New Issue
Block a user