Skip to content

Commit

Permalink
Merge pull request #41 from KMU-WINK/chore/13-svg-setting
Browse files Browse the repository at this point in the history
Feature: svgr loader 적용
  • Loading branch information
VarGun authored Aug 7, 2024
2 parents 608d349 + 403548d commit 5a4a953
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 5a4a953

Please sign in to comment.