Skip to content

Commit 43bef50

Browse files
committed
chore: @svgr/webpack 설치 및 적용
1 parent 91063ec commit 43bef50

File tree

3 files changed

+1415
-8
lines changed

3 files changed

+1415
-8
lines changed

next.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,11 @@ module.exports = {
2626
compiler: {
2727
emotion: true,
2828
},
29+
webpack: (config) => {
30+
config.module.rules.push({
31+
test: /\.svg$/,
32+
use: ['@svgr/webpack'],
33+
});
34+
return config;
35+
},
2936
};

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"devDependencies": {
2121
"@emotion/react": "^11.10.4",
2222
"@emotion/styled": "^11.10.4",
23+
"@svgr/webpack": "^6.5.1",
2324
"@types/node": "18.11.0",
2425
"@types/react": "18.0.21",
2526
"@types/react-dom": "18.0.6",
@@ -31,6 +32,7 @@
3132
"husky": "^8.0.1",
3233
"lint-staged": "^13.0.3",
3334
"prettier": "^2.7.1",
35+
"react-icons": "^4.6.0",
3436
"redux-logger": "^3.0.6",
3537
"typescript": "4.8.4"
3638
}

0 commit comments

Comments
 (0)