Skip to content

Commit

Permalink
feat: svgr loader 적용
Browse files Browse the repository at this point in the history
- 기존 public에 있는 index.ts 삭제
  • Loading branch information
JisuuungKim committed Aug 5, 2024
1 parent 0dd6c86 commit 403548d
Show file tree
Hide file tree
Showing 4 changed files with 1,481 additions and 46 deletions.
11 changes: 10 additions & 1 deletion frontend/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
webpack(config) {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
});

return config;
}
};

export default nextConfig;
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@svgr/webpack": "^8.1.0",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
Expand Down
35 changes: 0 additions & 35 deletions frontend/public/svgs/index.ts

This file was deleted.

Loading

0 comments on commit 403548d

Please sign in to comment.