Skip to content

Commit cabed5e

Browse files
removed svgr dependency to use nextjs webpack
1 parent 382ff23 commit cabed5e

2 files changed

Lines changed: 4 additions & 16 deletions

File tree

next.config.js

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
11
const withImages = require("next-images");
22

3-
module.exports = withImages();
4-
5-
module.exports = {
3+
module.exports = withImages({
4+
swcMinify: true, // Enable SWC-based minification
65
images: {
7-
disableStaticImages: true
8-
}
9-
}
10-
11-
module.exports = {
12-
webpack(config) {
13-
config.module.rules.push({
14-
test: /\.svg$/,
15-
use: ["@svgr/webpack"],
16-
});
17-
return config;
6+
disableStaticImages: true,
187
},
19-
};
8+
});

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"react-swipeable-views": "^0.13.9"
3434
},
3535
"devDependencies": {
36-
"@svgr/webpack": "5.5.0",
3736
"prettier": "1.18.2"
3837
}
3938
}

0 commit comments

Comments
 (0)