Skip to content

Commit

Permalink
fix: svg 파일을 처리하도록 vite-plugin-svgr 플러그인 설치
Browse files Browse the repository at this point in the history
  • Loading branch information
Yejiin21 committed Jan 31, 2025
1 parent e379ae8 commit 3367046
Show file tree
Hide file tree
Showing 4 changed files with 280 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Meta, StoryObj } from '@storybook/react';
import SearchTextField from '../../ui/textFields/SearchTextField';
import Search from '../icons/Search.svg';
import Search from '../../icons/Search.svg';

const meta = {
title: 'TextFields/SearchTextField',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"swiper": "^11.2.1",
"tailwind-scrollbar-hide": "^2.0.0",
"tailwindcss": "^3.4.15",
"vite-plugin-svgr": "^4.3.0",
"zustand": "^5.0.2"
},
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
import svgr from 'vite-plugin-svgr';

// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
plugins: [react(), svgr()],
});
Loading

0 comments on commit 3367046

Please sign in to comment.