위코딩
반응형
article thumbnail
[Vite] Vite 플러그인 사용하기
Framework/Vite 2023. 8. 7. 13:18

Vite는 다양한 플러그인을 지원하여 개발 환경과 빌드 프로세스를 더욱 향상시킬 수 있습니다. 이 글에서는 Vite에서 플러그인을 사용하는 방법과 주요 플러그인들을 알아보겠습니다. 플러그인 사용 방법 Vite에서 플러그인을 사용하려면 vite.config.js 파일에 해당 플러그인을 추가하면 됩니다. 플러그인은 plugins 옵션에 배열로 정의하며, 각 플러그인은 객체로서 { name: plugin, options } 형태로 작성합니다. // vite.config.js import myCustomPlugin from './myCustomPlugin.js'; export default { plugins: [ myCustomPlugin(), // 추가적인 플러그인들 ], }; 위와 같이 myCustomPlu..

반응형
loading loading