Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vite SWC Styled-components #47

Closed
1 task
bluetree7878 opened this issue Oct 13, 2024 · 1 comment ยท Fixed by #48
Closed
1 task

Vite SWC Styled-components #47

bluetree7878 opened this issue Oct 13, 2024 · 1 comment ยท Fixed by #48
Assignees
Labels
โš™ Setting ๊ฐœ๋ฐœ ํ™˜๊ฒฝ ์„ธํŒ…

Comments

@bluetree7878
Copy link
Collaborator

๐Ÿ“Œ ์ด์Šˆ ๋‚ด์šฉ

๊ธฐ๋ณธ์ ์œผ๋กœ styled-components ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์“ธ ๋•Œ์—๋Š” ๊ฐœ๋ฐœ์ž ๋„๊ตฌ๋กœ ์ผœ์„œ ์š”์†Œ๋“ค์„ ์‚ดํŽด๋ณด๋ฉด class๋ช…์ด ํ•ด์‹œ๋ผ์„œ ๋‚˜์˜ต๋‹ˆ๋‹ค.
๋•Œ๋ฌธ์— ๋””๋ฒ„๊น… ํ•  ๋•Œ ์š”์†Œ๋ฅผ ์ฐพ๊ธฐ๊ฐ€ ๊นŒ๋‹ค๋กœ์šธ ๋•Œ๊ฐ€ ๋งŽ์•˜์Šต๋‹ˆ๋‹ค. class๋ช…์ด ์Šคํƒ€์ผ๋“œ์ปดํฌ๋„ŒํŠธ๋ช…์— ๋งž๋„๋ก ํ•ด๊ฒฐํ•˜๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค.

๊ตฌํ˜„ ๋‚ด์šฉ

  • class๋ช… -> styled-componets๋ช…

๐Ÿ–ฅ๏ธ๊ด€๋ จ ํ™”๋ฉด (์„ ํƒ์‚ฌํ•ญ)

image

๐Ÿ“ ์ฐธ๊ณ  ์‚ฌํ•ญ

  1. ๊ธฐ๋ณธ์ ์ธ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๊ฐ€ ์•„๋‹Œ ํ”Œ๋Ÿฌ๊ทธ์ธ์— ์˜ํ•ด ์ž‘๋™ํ•˜๋Š” ๊ฒƒ์ด๋ฏ€๋กœ vite์„ค์ •ํŒŒ์ผ์„ ๊ฑด๋“œ๋ฆฌ๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.
  2. ์ผ๋‹จ route์ชฝ์ด ๊ณ„์† ์ถฉ๋Œ์ด ๋‚  ๊ฒƒ ๊ฐ™์€๋ฐ ๋ฐฉ๊ธˆ ๋„์œค ๋‹˜๊ป˜์„œ ๋จธ์ง€์‹œํ‚จ ์ชฝ์œผ๋กœ ๋”ฐ๋กœ ๊ฑด๋“ค์ง€ ์•Š๊ณ  ์ปค๋ฐ‹ ๋‚จ๊ธฐ๊ฒ ์Šต๋‹ˆ๋‹ค.
@bluetree7878 bluetree7878 added the โš™ Setting ๊ฐœ๋ฐœ ํ™˜๊ฒฝ ์„ธํŒ… label Oct 13, 2024
@bluetree7878 bluetree7878 self-assigned this Oct 13, 2024
Copy link

git fetch origin
git checkout setting/#47/Vite_SWC_Styled-components

@bluetree7878 bluetree7878 linked a pull request Oct 13, 2024 that will close this issue
1 task
bluetree7878 added a commit that referenced this issue Oct 13, 2024
โ€ฆyled-components

Vite @swc/plugin-styled-components ์ ์šฉ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
โš™ Setting ๊ฐœ๋ฐœ ํ™˜๊ฒฝ ์„ธํŒ…
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant